mkdocstrings-python 1.14.1__py3-none-any.whl → 1.14.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/config.py +5 -9
- mkdocstrings_handlers/python/handler.py +7 -2
- {mkdocstrings_python-1.14.1.dist-info → mkdocstrings_python-1.14.3.dist-info}/METADATA +1 -1
- {mkdocstrings_python-1.14.1.dist-info → mkdocstrings_python-1.14.3.dist-info}/RECORD +7 -7
- {mkdocstrings_python-1.14.1.dist-info → mkdocstrings_python-1.14.3.dist-info}/WHEEL +0 -0
- {mkdocstrings_python-1.14.1.dist-info → mkdocstrings_python-1.14.3.dist-info}/entry_points.txt +0 -0
- {mkdocstrings_python-1.14.1.dist-info → mkdocstrings_python-1.14.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -25,6 +25,11 @@ try:
|
|
|
25
25
|
# "yaml.schemas": {
|
|
26
26
|
# "https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
|
|
27
27
|
# }
|
|
28
|
+
import pydantic
|
|
29
|
+
|
|
30
|
+
if getattr(pydantic, "__version__", "1.").startswith("1."):
|
|
31
|
+
raise ImportError # noqa: TRY301
|
|
32
|
+
|
|
28
33
|
from inspect import cleandoc
|
|
29
34
|
|
|
30
35
|
from pydantic import Field as BaseField
|
|
@@ -838,15 +843,6 @@ class PythonInputOptions:
|
|
|
838
843
|
copy = data.copy()
|
|
839
844
|
return {name: copy.pop(name) for name in data if name not in field_names}, copy
|
|
840
845
|
|
|
841
|
-
# YORE: Bump 2: Remove block.
|
|
842
|
-
def __init__(self, **kwargs: Any) -> None:
|
|
843
|
-
"""Initialize the instance."""
|
|
844
|
-
extra_fields = self._extract_extra(kwargs)
|
|
845
|
-
for name, value in kwargs.items():
|
|
846
|
-
object.__setattr__(self, name, value)
|
|
847
|
-
if extra_fields:
|
|
848
|
-
object.__setattr__(self, "_extra", extra_fields)
|
|
849
|
-
|
|
850
846
|
@classmethod
|
|
851
847
|
def coerce(cls, **data: Any) -> MutableMapping[str, Any]:
|
|
852
848
|
"""Coerce data."""
|
|
@@ -186,12 +186,17 @@ class PythonHandler(BaseHandler):
|
|
|
186
186
|
|
|
187
187
|
extra = {**self.global_options.get("extra", {}), **local_options.get("extra", {})}
|
|
188
188
|
options = {**self.global_options, **local_options, "extra": extra}
|
|
189
|
-
# YORE: Bump 2: Replace `, **unknown_extra` with `` within line.
|
|
190
189
|
try:
|
|
191
|
-
return
|
|
190
|
+
# YORE: Bump 2: Replace `opts =` with `return` within line.
|
|
191
|
+
opts = PythonOptions.from_data(**options)
|
|
192
192
|
except Exception as error:
|
|
193
193
|
raise PluginError(f"Invalid options: {error}") from error
|
|
194
194
|
|
|
195
|
+
# YORE: Bump 2: Remove block.
|
|
196
|
+
for key, value in unknown_extra.items():
|
|
197
|
+
object.__setattr__(opts, key, value)
|
|
198
|
+
return opts
|
|
199
|
+
|
|
195
200
|
def collect(self, identifier: str, options: PythonOptions) -> CollectorItem: # noqa: D102
|
|
196
201
|
module_name = identifier.split(".", 1)[0]
|
|
197
202
|
unknown_module = module_name not in self._modules_collection
|
|
@@ -148,9 +148,9 @@ mkdocstrings_handlers/python/.mypy_cache/3.12/watchdog/observers/polling.data.js
|
|
|
148
148
|
mkdocstrings_handlers/python/.mypy_cache/3.12/watchdog/observers/polling.meta.json,sha256=EDv6SusmmK9nmVtgCfInvJ8BlI91GDkqFeYVkybpql0,1941
|
|
149
149
|
mkdocstrings_handlers/python/.mypy_cache/CACHEDIR.TAG,sha256=8cE6_FVTWMkDOw8fMKqhd_6IvaQPS4okWYQA1UeHatw,190
|
|
150
150
|
mkdocstrings_handlers/python/__init__.py,sha256=k-0NWvXysr5RqWjtGyCozookveBB-ADZHIhgxvI1px8,128
|
|
151
|
-
mkdocstrings_handlers/python/config.py,sha256=
|
|
151
|
+
mkdocstrings_handlers/python/config.py,sha256=Sc6w1p92A0h4Lro64Ibnn4e9X7gjBTavz9Xc-ZMNsy8,30966
|
|
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=ucz0l8mbt-Ez3RAnPOCx3_e5L8PvRsMRJ--ODTOpbZI,14577
|
|
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.3.dist-info/METADATA,sha256=FvAVNjYn20CycZ_WEL_IQWdJjapPk1I07uTuPnEwLdc,5570
|
|
331
|
+
mkdocstrings_python-1.14.3.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
|
332
|
+
mkdocstrings_python-1.14.3.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
333
|
+
mkdocstrings_python-1.14.3.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
|
|
334
|
+
mkdocstrings_python-1.14.3.dist-info/RECORD,,
|
|
File without changes
|
{mkdocstrings_python-1.14.1.dist-info → mkdocstrings_python-1.14.3.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{mkdocstrings_python-1.14.1.dist-info → mkdocstrings_python-1.14.3.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|