mkdocstrings-python 1.16.0__py3-none-any.whl → 1.16.2__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.
@@ -128,9 +128,11 @@ class PythonHandler(BaseHandler):
128
128
  # If it's not absolute, make path relative to the config file path, then make it absolute.
129
129
  if not os.path.isabs(path):
130
130
  path = os.path.abspath(base_dir / path) # noqa: PLW2901
131
- # Don't add duplicates.
132
- if path not in search_paths:
133
- search_paths.insert(0, path)
131
+ # Remove pre-listed paths.
132
+ if path in search_paths:
133
+ search_paths.remove(path)
134
+ # Give precedence to user-provided paths.
135
+ search_paths.insert(0, path)
134
136
 
135
137
  self._paths = search_paths
136
138
  self._modules_collection: ModulesCollection = ModulesCollection()
@@ -28,7 +28,7 @@ from griffe import (
28
28
  )
29
29
  from jinja2 import TemplateNotFound, pass_context, pass_environment
30
30
  from markupsafe import Markup
31
- from mkdocs_autorefs.references import AutorefsHookInterface
31
+ from mkdocs_autorefs import AutorefsHookInterface
32
32
  from mkdocstrings.loggers import get_logger
33
33
 
34
34
  if TYPE_CHECKING:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mkdocstrings-python
3
- Version: 1.16.0
3
+ Version: 1.16.2
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: ISC
@@ -29,8 +29,8 @@ Project-URL: Discussions, https://github.com/mkdocstrings/python/discussions
29
29
  Project-URL: Gitter, https://gitter.im/mkdocstrings/python
30
30
  Project-URL: Funding, https://github.com/sponsors/pawamoy
31
31
  Requires-Python: >=3.9
32
- Requires-Dist: mkdocstrings>=0.28
33
- Requires-Dist: mkdocs-autorefs>=1.2
32
+ Requires-Dist: mkdocstrings>=0.28.2
33
+ Requires-Dist: mkdocs-autorefs>=1.4
34
34
  Requires-Dist: griffe>=0.49
35
35
  Requires-Dist: typing-extensions>=4.0; python_version < "3.11"
36
36
  Description-Content-Type: text/markdown
@@ -150,9 +150,9 @@ 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=bXAw1KOLJdcVBOAE-WppDLMWqw8QqjwcP-jKCybtCjo,31647
152
152
  mkdocstrings_handlers/python/debug.py,sha256=4vqIbCbbz_vcjcFk6jPoF8E1kLig8AQEsQ93ybcjIVc,2894
153
- mkdocstrings_handlers/python/handler.py,sha256=0ap57utWbw6o4LWLhZOQWsr_H4Fr7t1zcCmV6xfqY-w,14849
153
+ mkdocstrings_handlers/python/handler.py,sha256=f083vvw5k3PaFl0CKJ4DGiMXsCJDl2fmxiH4_tjoK5s,14940
154
154
  mkdocstrings_handlers/python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
155
- mkdocstrings_handlers/python/rendering.py,sha256=DuNV-cI2Tie574yItj6CiE95THbKOxpZE0uvl50iGmI,23054
155
+ mkdocstrings_handlers/python/rendering.py,sha256=w2vQQ8LngCvl8RWq1XCop82X4r8Xz3U-mmunL9jmBhY,23043
156
156
  mkdocstrings_handlers/python/templates/material/_base/attribute.html,sha256=nn0671f4bE7VqnTs-VQL3SGPACWAxb2uJBRcP2nwYng,427
157
157
  mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja,sha256=sbbkQtl5bPm5mmmZ-VCyLtfsOuhSr-FrD2FUSlbK-Zs,4451
158
158
  mkdocstrings_handlers/python/templates/material/_base/children.html,sha256=mOafkSlphFQJLWfrYrIMFVRGi2yjdtN6iJh8bPt7uRI,424
@@ -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.16.0.dist-info/METADATA,sha256=ggG-AtwbN-ueWVpDvUYEskHVlAgUfSWFvlyO_bafuQA,5570
331
- mkdocstrings_python-1.16.0.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
332
- mkdocstrings_python-1.16.0.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
333
- mkdocstrings_python-1.16.0.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
334
- mkdocstrings_python-1.16.0.dist-info/RECORD,,
330
+ mkdocstrings_python-1.16.2.dist-info/METADATA,sha256=HZWGgxJJt9xvnNoo6pyPRY0tkkuC5eaaSHqU4gVjbo4,5572
331
+ mkdocstrings_python-1.16.2.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
332
+ mkdocstrings_python-1.16.2.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
333
+ mkdocstrings_python-1.16.2.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
334
+ mkdocstrings_python-1.16.2.dist-info/RECORD,,