mkdocstrings-python 1.14.0__py3-none-any.whl → 1.14.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mkdocstrings_handlers/python/handler.py +8 -4
- {mkdocstrings_python-1.14.0.dist-info → mkdocstrings_python-1.14.1.dist-info}/METADATA +1 -1
- {mkdocstrings_python-1.14.0.dist-info → mkdocstrings_python-1.14.1.dist-info}/RECORD +6 -6
- {mkdocstrings_python-1.14.0.dist-info → mkdocstrings_python-1.14.1.dist-info}/WHEEL +0 -0
- {mkdocstrings_python-1.14.0.dist-info → mkdocstrings_python-1.14.1.dist-info}/entry_points.txt +0 -0
- {mkdocstrings_python-1.14.0.dist-info → mkdocstrings_python-1.14.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -195,8 +195,12 @@ class PythonHandler(BaseHandler):
|
|
|
195
195
|
def collect(self, identifier: str, options: PythonOptions) -> CollectorItem: # noqa: D102
|
|
196
196
|
module_name = identifier.split(".", 1)[0]
|
|
197
197
|
unknown_module = module_name not in self._modules_collection
|
|
198
|
-
|
|
199
|
-
|
|
198
|
+
reapply = True
|
|
199
|
+
if options == {}:
|
|
200
|
+
if unknown_module:
|
|
201
|
+
raise CollectionError("Not loading additional modules during fallback")
|
|
202
|
+
options = self.get_options({})
|
|
203
|
+
reapply = False
|
|
200
204
|
|
|
201
205
|
parser_name = options.docstring_style
|
|
202
206
|
parser = parser_name and Parser(parser_name)
|
|
@@ -244,11 +248,11 @@ class PythonHandler(BaseHandler):
|
|
|
244
248
|
except AliasResolutionError as error:
|
|
245
249
|
raise CollectionError(str(error)) from error
|
|
246
250
|
|
|
247
|
-
if not unknown_module:
|
|
251
|
+
if not unknown_module and reapply:
|
|
248
252
|
with suppress(AliasResolutionError):
|
|
249
253
|
if doc_object.docstring is not None:
|
|
250
254
|
doc_object.docstring.parser = parser
|
|
251
|
-
doc_object.docstring.parser_options = parser_options
|
|
255
|
+
doc_object.docstring.parser_options = parser_options or {}
|
|
252
256
|
|
|
253
257
|
return doc_object
|
|
254
258
|
|
|
@@ -150,7 +150,7 @@ mkdocstrings_handlers/python/.mypy_cache/CACHEDIR.TAG,sha256=8cE6_FVTWMkDOw8fMKq
|
|
|
150
150
|
mkdocstrings_handlers/python/__init__.py,sha256=k-0NWvXysr5RqWjtGyCozookveBB-ADZHIhgxvI1px8,128
|
|
151
151
|
mkdocstrings_handlers/python/config.py,sha256=Q41eS0qct2JMuHKbh3BZg9D6C4guhX64NxMIoDE2Frg,31189
|
|
152
152
|
mkdocstrings_handlers/python/debug.py,sha256=4vqIbCbbz_vcjcFk6jPoF8E1kLig8AQEsQ93ybcjIVc,2894
|
|
153
|
-
mkdocstrings_handlers/python/handler.py,sha256=
|
|
153
|
+
mkdocstrings_handlers/python/handler.py,sha256=VTrIfmICKfWyR_WzyVweZgoL7ZWhY1GrxqcNPWOLbjk,14438
|
|
154
154
|
mkdocstrings_handlers/python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
155
155
|
mkdocstrings_handlers/python/rendering.py,sha256=0j1LmGkwJg8zsnNYTnn_a62iqUJv0McIJMSrmh_ap_8,21628
|
|
156
156
|
mkdocstrings_handlers/python/templates/material/_base/attribute.html,sha256=nn0671f4bE7VqnTs-VQL3SGPACWAxb2uJBRcP2nwYng,427
|
|
@@ -327,8 +327,8 @@ mkdocstrings_handlers/python/templates/readthedocs/languages/ja.html.jinja,sha25
|
|
|
327
327
|
mkdocstrings_handlers/python/templates/readthedocs/languages/zh.html,sha256=OuvrkorxuL0gKZNYneann1bwd1Z2i5bBY7SbC496HDw,46
|
|
328
328
|
mkdocstrings_handlers/python/templates/readthedocs/languages/zh.html.jinja,sha256=OuvrkorxuL0gKZNYneann1bwd1Z2i5bBY7SbC496HDw,46
|
|
329
329
|
mkdocstrings_handlers/python/templates/readthedocs/style.css,sha256=Ds8vF1rSxc2B0c4P10osx4cqXHWMntcSCxmRfX-nfzw,971
|
|
330
|
-
mkdocstrings_python-1.14.
|
|
331
|
-
mkdocstrings_python-1.14.
|
|
332
|
-
mkdocstrings_python-1.14.
|
|
333
|
-
mkdocstrings_python-1.14.
|
|
334
|
-
mkdocstrings_python-1.14.
|
|
330
|
+
mkdocstrings_python-1.14.1.dist-info/METADATA,sha256=qSC0y1jbkb_V-dh7R5eDcuVW0bbD21911kMW7tqFcQ4,5570
|
|
331
|
+
mkdocstrings_python-1.14.1.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
|
332
|
+
mkdocstrings_python-1.14.1.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
333
|
+
mkdocstrings_python-1.14.1.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
|
|
334
|
+
mkdocstrings_python-1.14.1.dist-info/RECORD,,
|
|
File without changes
|
{mkdocstrings_python-1.14.0.dist-info → mkdocstrings_python-1.14.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{mkdocstrings_python-1.14.0.dist-info → mkdocstrings_python-1.14.1.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|