|
72 | 72 | #
|
73 | 73 | # This is also used if you do content translation via gettext catalogs.
|
74 | 74 | # Usually you set "language" from the command line for these cases.
|
75 |
| -language: Optional[str] = None |
| 75 | +language: Optional[str] = "en" |
76 | 76 |
|
77 | 77 | # List of patterns, relative to source directory, that match files and
|
78 | 78 | # directories to ignore when looking for source files.
|
@@ -275,17 +275,7 @@ def __init__(self, obj, **kwargs):
|
275 | 275 | bases = obj["bases"]
|
276 | 276 | for i in range(len(bases)):
|
277 | 277 | bases[i] = _apply_name_aliases(bases[i])
|
278 |
| - |
279 |
| - args = obj["args"] |
280 |
| - if args is not None: |
281 |
| - for i in range(len(args)): |
282 |
| - assert isinstance(args[i], tuple) and len(args[i]) == 4 |
283 |
| - args[i] = ( |
284 |
| - args[i][0], |
285 |
| - args[i][1], |
286 |
| - _apply_name_aliases(args[i][2]), |
287 |
| - args[i][3], |
288 |
| - ) |
| 278 | + obj["full_name"] = _apply_name_aliases(obj["full_name"]) |
289 | 279 | orig_init(self, obj, **kwargs)
|
290 | 280 |
|
291 | 281 | autoapi.mappers.python.PythonClass.__init__ = __init__
|
@@ -344,12 +334,12 @@ def __init__(self, obj, **kwargs):
|
344 | 334 |
|
345 | 335 | # -- Enable Markdown -> RST conversion ----------------------------------------
|
346 | 336 |
|
347 |
| -import m2r |
| 337 | +import m2r2 |
348 | 338 |
|
349 | 339 |
|
350 | 340 | def docstring(app, what, name, obj, options, lines):
|
351 | 341 | md = "\n".join(lines)
|
352 |
| - rst = m2r.convert(md) |
| 342 | + rst = m2r2.convert(md) |
353 | 343 | lines.clear()
|
354 | 344 | lines += rst.splitlines()
|
355 | 345 |
|
|
0 commit comments