mkdocstrings-python 2.0.1__py3-none-any.whl → 2.0.3__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/_internal/config.py +1 -1
- mkdocstrings_handlers/python/_internal/handler.py +2 -2
- mkdocstrings_handlers/python/_internal/rendering.py +7 -7
- {mkdocstrings_python-2.0.1.dist-info → mkdocstrings_python-2.0.3.dist-info}/METADATA +4 -10
- {mkdocstrings_python-2.0.1.dist-info → mkdocstrings_python-2.0.3.dist-info}/RECORD +8 -8
- {mkdocstrings_python-2.0.1.dist-info → mkdocstrings_python-2.0.3.dist-info}/WHEEL +1 -1
- {mkdocstrings_python-2.0.1.dist-info → mkdocstrings_python-2.0.3.dist-info}/entry_points.txt +0 -0
- {mkdocstrings_python-2.0.1.dist-info → mkdocstrings_python-2.0.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -498,7 +498,7 @@ class PythonInputOptions:
|
|
|
498
498
|
those added to `__all__` or not starting with an underscore (except for special methods/attributes).
|
|
499
499
|
""",
|
|
500
500
|
),
|
|
501
|
-
] = field(default_factory=
|
|
501
|
+
] = field(default_factory=_DEFAULT_FILTERS.copy)
|
|
502
502
|
|
|
503
503
|
find_stubs_package: Annotated[
|
|
504
504
|
bool,
|
|
@@ -203,7 +203,7 @@ class PythonHandler(BaseHandler):
|
|
|
203
203
|
extensions=load_extensions(*extensions),
|
|
204
204
|
search_paths=self._paths,
|
|
205
205
|
docstring_parser=parser,
|
|
206
|
-
docstring_options=parser_options,
|
|
206
|
+
docstring_options=parser_options,
|
|
207
207
|
modules_collection=self._modules_collection,
|
|
208
208
|
lines_collection=self._lines_collection,
|
|
209
209
|
allow_inspection=options.allow_inspection,
|
|
@@ -330,7 +330,7 @@ class PythonHandler(BaseHandler):
|
|
|
330
330
|
"""
|
|
331
331
|
if "(" in identifier:
|
|
332
332
|
identifier, parameter = identifier.split("(", 1)
|
|
333
|
-
parameter.removesuffix(")")
|
|
333
|
+
parameter = parameter.removesuffix(")")
|
|
334
334
|
else:
|
|
335
335
|
parameter = ""
|
|
336
336
|
try:
|
|
@@ -414,15 +414,15 @@ def _keep_object(name: str, filters: Sequence[tuple[Pattern, bool]]) -> bool:
|
|
|
414
414
|
|
|
415
415
|
|
|
416
416
|
def _parents(obj: Alias) -> set[str]:
|
|
417
|
-
parent: Object | Alias = obj.parent
|
|
417
|
+
parent: Object | Alias = obj.parent
|
|
418
418
|
parents = {obj.path, parent.path}
|
|
419
419
|
if parent.is_alias:
|
|
420
|
-
parents.add(parent.final_target.path)
|
|
420
|
+
parents.add(parent.final_target.path)
|
|
421
421
|
while parent.parent:
|
|
422
422
|
parent = parent.parent
|
|
423
423
|
parents.add(parent.path)
|
|
424
424
|
if parent.is_alias:
|
|
425
|
-
parents.add(parent.final_target.path)
|
|
425
|
+
parents.add(parent.final_target.path)
|
|
426
426
|
return parents
|
|
427
427
|
|
|
428
428
|
|
|
@@ -431,7 +431,7 @@ def _remove_cycles(objects: list[Object | Alias]) -> Iterator[Object | Alias]:
|
|
|
431
431
|
for obj in objects:
|
|
432
432
|
if obj.is_alias:
|
|
433
433
|
with suppress_errors:
|
|
434
|
-
if obj.final_target.path in _parents(obj):
|
|
434
|
+
if obj.final_target.path in _parents(obj):
|
|
435
435
|
continue
|
|
436
436
|
yield obj
|
|
437
437
|
|
|
@@ -778,7 +778,7 @@ class AutorefsHook(AutorefsHookInterface):
|
|
|
778
778
|
obj = self.current_object
|
|
779
779
|
while identifier and identifier[0] == ".":
|
|
780
780
|
identifier = identifier[1:]
|
|
781
|
-
obj = obj.parent
|
|
781
|
+
obj = obj.parent
|
|
782
782
|
identifier = f"{obj.path}.{identifier}" if identifier else obj.path
|
|
783
783
|
|
|
784
784
|
# We resolve the identifier to its full path.
|
|
@@ -809,8 +809,8 @@ class AutorefsHook(AutorefsHookInterface):
|
|
|
809
809
|
}.get(self.current_object.kind.value.lower(), "obj")
|
|
810
810
|
origin = self.current_object.path
|
|
811
811
|
try:
|
|
812
|
-
filepath = self.current_object.docstring.parent.filepath
|
|
813
|
-
lineno = self.current_object.docstring.lineno or 0
|
|
812
|
+
filepath = self.current_object.docstring.parent.filepath
|
|
813
|
+
lineno = self.current_object.docstring.lineno or 0
|
|
814
814
|
except AttributeError:
|
|
815
815
|
filepath = self.current_object.filepath
|
|
816
816
|
lineno = 0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mkdocstrings-python
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.3
|
|
4
4
|
Summary: A Python handler for mkdocstrings.
|
|
5
5
|
Author-Email: =?utf-8?q?Timoth=C3=A9e_Mazzucotelli?= <dev@pawamoy.fr>
|
|
6
6
|
License-Expression: ISC
|
|
@@ -31,7 +31,7 @@ Project-URL: Funding, https://github.com/sponsors/pawamoy
|
|
|
31
31
|
Requires-Python: >=3.10
|
|
32
32
|
Requires-Dist: mkdocstrings>=0.30
|
|
33
33
|
Requires-Dist: mkdocs-autorefs>=1.4
|
|
34
|
-
Requires-Dist:
|
|
34
|
+
Requires-Dist: griffelib>=2.0
|
|
35
35
|
Requires-Dist: typing-extensions>=4.0; python_version < "3.11"
|
|
36
36
|
Description-Content-Type: text/markdown
|
|
37
37
|
|
|
@@ -122,9 +122,7 @@ dependencies = [
|
|
|
122
122
|
<div id="premium-sponsors" style="text-align: center;">
|
|
123
123
|
|
|
124
124
|
<div id="silver-sponsors"><b>Silver sponsors</b><p>
|
|
125
|
-
<a href="https://squidfunk.github.io/mkdocs-material/"><img alt="Material for MkDocs" src="https://raw.githubusercontent.com/squidfunk/mkdocs-material/master/.github/assets/logo.svg" style="height: 320px; "></a><br>
|
|
126
125
|
<a href="https://fastapi.tiangolo.com/"><img alt="FastAPI" src="https://raw.githubusercontent.com/tiangolo/fastapi/master/docs/en/docs/img/logo-margin/logo-teal.png" style="height: 200px; "></a><br>
|
|
127
|
-
<a href="https://docs.pydantic.dev/latest/"><img alt="Pydantic" src="https://pydantic.dev/assets/for-external/pydantic_logfire_logo_endorsed_lithium_rgb.svg" style="height: 180px; "></a><br>
|
|
128
126
|
</p></div>
|
|
129
127
|
|
|
130
128
|
<div id="bronze-sponsors"><b>Bronze sponsors</b><p>
|
|
@@ -146,23 +144,18 @@ dependencies = [
|
|
|
146
144
|
<a href="https://github.com/machow"><img alt="machow" src="https://avatars.githubusercontent.com/u/2574498?u=c41e3d2f758a05102d8075e38d67b9c17d4189d7&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
147
145
|
<a href="https://github.com/BenHammersley"><img alt="BenHammersley" src="https://avatars.githubusercontent.com/u/99436?u=4499a7b507541045222ee28ae122dbe3c8d08ab5&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
148
146
|
<a href="https://github.com/trevorWieland"><img alt="trevorWieland" src="https://avatars.githubusercontent.com/u/28811461?u=74cc0e3756c1d4e3d66b5c396e1d131ea8a10472&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
149
|
-
<a href="https://github.com/laenan8466"><img alt="laenan8466" src="https://avatars.githubusercontent.com/u/21331242?v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
150
147
|
<a href="https://github.com/MarcoGorelli"><img alt="MarcoGorelli" src="https://avatars.githubusercontent.com/u/33491632?u=7de3a749cac76a60baca9777baf71d043a4f884d&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
151
148
|
<a href="https://github.com/analog-cbarber"><img alt="analog-cbarber" src="https://avatars.githubusercontent.com/u/7408243?u=642fc2bdcc9904089c62fe5aec4e03ace32da67d&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
152
149
|
<a href="https://github.com/OdinManiac"><img alt="OdinManiac" src="https://avatars.githubusercontent.com/u/22727172?u=36ab20970f7f52ae8e7eb67b7fcf491fee01ac22&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
153
150
|
<a href="https://github.com/rstudio-sponsorship"><img alt="rstudio-sponsorship" src="https://avatars.githubusercontent.com/u/58949051?u=0c471515dd18111be30dfb7669ed5e778970959b&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
154
151
|
<a href="https://github.com/schlich"><img alt="schlich" src="https://avatars.githubusercontent.com/u/21191435?u=6f1240adb68f21614d809ae52d66509f46b1e877&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
155
|
-
<a href="https://github.com/SuperCowPowers"><img alt="SuperCowPowers" src="https://avatars.githubusercontent.com/u/6900187?v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
156
152
|
<a href="https://github.com/butterlyn"><img alt="butterlyn" src="https://avatars.githubusercontent.com/u/53323535?v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
157
153
|
<a href="https://github.com/livingbio"><img alt="livingbio" src="https://avatars.githubusercontent.com/u/10329983?v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
158
154
|
<a href="https://github.com/NemetschekAllplan"><img alt="NemetschekAllplan" src="https://avatars.githubusercontent.com/u/912034?v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
159
155
|
<a href="https://github.com/EricJayHartman"><img alt="EricJayHartman" src="https://avatars.githubusercontent.com/u/9259499?u=7e58cc7ec0cd3e85b27aec33656aa0f6612706dd&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
160
156
|
<a href="https://github.com/15r10nk"><img alt="15r10nk" src="https://avatars.githubusercontent.com/u/44680962?u=f04826446ff165742efa81e314bd03bf1724d50e&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
161
|
-
<a href="https://github.com/cdwilson"><img alt="cdwilson" src="https://avatars.githubusercontent.com/u/14631?v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
162
157
|
<a href="https://github.com/activeloopai"><img alt="activeloopai" src="https://avatars.githubusercontent.com/u/34816118?v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
163
158
|
<a href="https://github.com/roboflow"><img alt="roboflow" src="https://avatars.githubusercontent.com/u/53104118?v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
164
|
-
<a href="https://github.com/wrath-codes"><img alt="wrath-codes" src="https://avatars.githubusercontent.com/u/90050913?u=b26582409dfff8ce2b60016fd119be09309708da&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
165
|
-
<a href="https://github.com/leodevian"><img alt="leodevian" src="https://avatars.githubusercontent.com/u/167141781?v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
166
159
|
<a href="https://github.com/cmclaughlin"><img alt="cmclaughlin" src="https://avatars.githubusercontent.com/u/1061109?u=ddf6eec0edd2d11c980f8c3aa96e3d044d4e0468&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
167
160
|
<a href="https://github.com/blaisep"><img alt="blaisep" src="https://avatars.githubusercontent.com/u/254456?u=97d584b7c0a6faf583aa59975df4f993f671d121&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
168
161
|
<a href="https://github.com/RapidataAI"><img alt="RapidataAI" src="https://avatars.githubusercontent.com/u/104209891?v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
@@ -171,9 +164,10 @@ dependencies = [
|
|
|
171
164
|
<a href="https://github.com/blakeNaccarato"><img alt="blakeNaccarato" src="https://avatars.githubusercontent.com/u/20692450?u=bb919218be30cfa994514f4cf39bb2f7cf952df4&v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
172
165
|
<a href="https://github.com/ChargeStorm"><img alt="ChargeStorm" src="https://avatars.githubusercontent.com/u/26000165?v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
173
166
|
<a href="https://github.com/Alphadelta14"><img alt="Alphadelta14" src="https://avatars.githubusercontent.com/u/480845?v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
167
|
+
<a href="https://github.com/Cusp-AI"><img alt="Cusp-AI" src="https://avatars.githubusercontent.com/u/178170649?v=4" style="height: 32px; border-radius: 100%;"></a>
|
|
174
168
|
</p></div>
|
|
175
169
|
|
|
176
170
|
|
|
177
|
-
*And
|
|
171
|
+
*And 7 more private sponsor(s).*
|
|
178
172
|
|
|
179
173
|
<!-- sponsors-end -->
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
mkdocstrings_handlers/python/__init__.py,sha256=Kxy1zA4JJy0aWxUa2_xl5PfYV2-mrBKJ9Re56dq3s94,1650
|
|
2
2
|
mkdocstrings_handlers/python/_internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
mkdocstrings_handlers/python/_internal/config.py,sha256=
|
|
3
|
+
mkdocstrings_handlers/python/_internal/config.py,sha256=iSnsL-DXqWSm_0YKv-2giDxTdljxZWvDgTGkCo9GBPg,35261
|
|
4
4
|
mkdocstrings_handlers/python/_internal/debug.py,sha256=A6B3w6LWN22kYtvvbmz7vnh8Pr5hzvtrHhM3-Es8Isg,2882
|
|
5
|
-
mkdocstrings_handlers/python/_internal/handler.py,sha256=
|
|
6
|
-
mkdocstrings_handlers/python/_internal/rendering.py,sha256=
|
|
5
|
+
mkdocstrings_handlers/python/_internal/handler.py,sha256=8LET9phgBvHe-cpfo1OxqkAIFVK5dZzsYjTCWP3Ls6k,15641
|
|
6
|
+
mkdocstrings_handlers/python/_internal/rendering.py,sha256=ETPIGQ47egjUVNyiBIx8kW72UQ-_ZOYcj3bAfrKMfmc,28437
|
|
7
7
|
mkdocstrings_handlers/python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja,sha256=ajtKaGxs9-VJzPNiXbQTYTO6ADq8Ck9M9x2BfXakG0g,4838
|
|
9
9
|
mkdocstrings_handlers/python/templates/material/_base/backlinks.html.jinja,sha256=k8eX0lyQmmooaEotjYngdXO8RJldjixvZW30S5jGXOA,2109
|
|
@@ -114,8 +114,8 @@ mkdocstrings_handlers/python/templates/readthedocs/languages/en.html.jinja,sha25
|
|
|
114
114
|
mkdocstrings_handlers/python/templates/readthedocs/languages/ja.html.jinja,sha256=e_DPZvMvaaJm0QyjTxW8SkBEbhMXBgBiMrLJ1osAwZc,46
|
|
115
115
|
mkdocstrings_handlers/python/templates/readthedocs/languages/zh.html.jinja,sha256=OuvrkorxuL0gKZNYneann1bwd1Z2i5bBY7SbC496HDw,46
|
|
116
116
|
mkdocstrings_handlers/python/templates/readthedocs/style.css,sha256=Ds8vF1rSxc2B0c4P10osx4cqXHWMntcSCxmRfX-nfzw,971
|
|
117
|
-
mkdocstrings_python-2.0.
|
|
118
|
-
mkdocstrings_python-2.0.
|
|
119
|
-
mkdocstrings_python-2.0.
|
|
120
|
-
mkdocstrings_python-2.0.
|
|
121
|
-
mkdocstrings_python-2.0.
|
|
117
|
+
mkdocstrings_python-2.0.3.dist-info/METADATA,sha256=z-GPvx23CDkKJSNNJRjaLzaeuxhhRrw4Bm8j4-cFgfE,12759
|
|
118
|
+
mkdocstrings_python-2.0.3.dist-info/WHEEL,sha256=Wb0ASbVj8JvWHpOiIpPi7ucfIgJeCi__PzivviEAQFc,90
|
|
119
|
+
mkdocstrings_python-2.0.3.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
120
|
+
mkdocstrings_python-2.0.3.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
|
|
121
|
+
mkdocstrings_python-2.0.3.dist-info/RECORD,,
|
{mkdocstrings_python-2.0.1.dist-info → mkdocstrings_python-2.0.3.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{mkdocstrings_python-2.0.1.dist-info → mkdocstrings_python-2.0.3.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|