mkdocstrings-python 1.10.1__py3-none-any.whl → 1.10.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.
@@ -474,25 +474,25 @@ def do_get_template(env: Environment, obj: str | Object) -> str | Template:
474
474
  template = env.get_template(f"{name}.html")
475
475
  except TemplateNotFound:
476
476
  return f"{name}.html.jinja"
477
- else:
478
- # TODO: Remove once support for Python 3.8 is dropped.
479
- if sys.version_info < (3, 9):
480
- try:
481
- Path(template.filename).relative_to(Path(__file__).parent) # type: ignore[arg-type]
482
- except ValueError:
483
- our_template = False
484
- else:
485
- our_template = True
477
+ # TODO: Remove once support for Python 3.8 is dropped.
478
+ if sys.version_info < (3, 9):
479
+ try:
480
+ Path(template.filename).relative_to(Path(__file__).parent) # type: ignore[arg-type]
481
+ except ValueError:
482
+ our_template = False
486
483
  else:
487
- our_template = Path(template.filename).is_relative_to(Path(__file__).parent) # type: ignore[arg-type]
488
- if not our_template:
489
- # TODO: Switch to a warning log after some time.
490
- logger.info(
491
- f"DeprecationWarning: Overriding '{name}.html' is deprecated, override '{name}.html.jinja' instead. "
492
- "After some time, this message will be logged as a warning, causing strict builds to fail.",
493
- once=True,
494
- )
495
- return f"{name}.html"
484
+ our_template = True
485
+ else:
486
+ our_template = Path(template.filename).is_relative_to(Path(__file__).parent) # type: ignore[arg-type]
487
+ if our_template:
488
+ return f"{name}.html.jinja"
489
+ # TODO: Switch to a warning log after some time.
490
+ logger.info(
491
+ f"DeprecationWarning: Overriding '{name}.html' is deprecated, override '{name}.html.jinja' instead. "
492
+ "After some time, this message will be logged as a warning, causing strict builds to fail.",
493
+ once=True,
494
+ )
495
+ return f"{name}.html"
496
496
 
497
497
 
498
498
  @pass_context
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mkdocstrings-python
3
- Version: 1.10.1
3
+ Version: 1.10.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
@@ -2,7 +2,7 @@ mkdocstrings_handlers/python/__init__.py,sha256=k-0NWvXysr5RqWjtGyCozookveBB-ADZ
2
2
  mkdocstrings_handlers/python/debug.py,sha256=AscoYoSXHANgE7ps5o9TzkzBT43YxNmtPxl2a4zC5oE,2764
3
3
  mkdocstrings_handlers/python/handler.py,sha256=wqtx-2V9xVy26encCogpwU_8ySu_nfbxKTtWgqMyEqg,24319
4
4
  mkdocstrings_handlers/python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- mkdocstrings_handlers/python/rendering.py,sha256=IZ079afx10YjqEj9e2Y9PZw6zMou-l6TzKVr9evWKC8,18113
5
+ mkdocstrings_handlers/python/rendering.py,sha256=kxy4MKpEUb_WzxXVXLnZ16HCFzqvWbuaDQQXGiIIV1U,18039
6
6
  mkdocstrings_handlers/python/templates/material/_base/attribute.html,sha256=nn0671f4bE7VqnTs-VQL3SGPACWAxb2uJBRcP2nwYng,427
7
7
  mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja,sha256=T29m8kLAh7ZWnik7wgdT0MvZLfmyUl2BXDMriZynuDA,4373
8
8
  mkdocstrings_handlers/python/templates/material/_base/children.html,sha256=mOafkSlphFQJLWfrYrIMFVRGi2yjdtN6iJh8bPt7uRI,424
@@ -177,7 +177,7 @@ mkdocstrings_handlers/python/templates/readthedocs/languages/ja.html.jinja,sha25
177
177
  mkdocstrings_handlers/python/templates/readthedocs/languages/zh.html,sha256=OuvrkorxuL0gKZNYneann1bwd1Z2i5bBY7SbC496HDw,46
178
178
  mkdocstrings_handlers/python/templates/readthedocs/languages/zh.html.jinja,sha256=OuvrkorxuL0gKZNYneann1bwd1Z2i5bBY7SbC496HDw,46
179
179
  mkdocstrings_handlers/python/templates/readthedocs/style.css,sha256=Ds8vF1rSxc2B0c4P10osx4cqXHWMntcSCxmRfX-nfzw,971
180
- mkdocstrings_python-1.10.1.dist-info/METADATA,sha256=FTyP5ff5GvHRoPT4_xrJDosyNENV9kNuoX0iXg591CM,5507
181
- mkdocstrings_python-1.10.1.dist-info/WHEEL,sha256=vnE8JVcI2Wz7GRKorsPArnBdnW2SWKWGow5gu5tHlRU,90
182
- mkdocstrings_python-1.10.1.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
183
- mkdocstrings_python-1.10.1.dist-info/RECORD,,
180
+ mkdocstrings_python-1.10.2.dist-info/METADATA,sha256=DTFmblBBubbExVfPwplDtK5ZKZS92yrnCuw8c1nm8WM,5507
181
+ mkdocstrings_python-1.10.2.dist-info/WHEEL,sha256=vnE8JVcI2Wz7GRKorsPArnBdnW2SWKWGow5gu5tHlRU,90
182
+ mkdocstrings_python-1.10.2.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
183
+ mkdocstrings_python-1.10.2.dist-info/RECORD,,