mkdocstrings-python 1.12.1__py3-none-any.whl → 1.12.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.
@@ -32,15 +32,16 @@ which is a tree-like structure representing a Python expression.
32
32
  {%- set annotation = full -%}
33
33
  {%- endif -%}
34
34
  {%- for title, path in annotation|split_path(full) -%}
35
- {%- if config.signature_crossrefs -%}
36
- {%- if signature -%}
37
- {%- filter stash_crossref(length=title|length) -%}
38
- <autoref identifier="{{ path }}" optional{% if title != path %} hover{% endif %}>{{ title }}</autoref>
39
- {%- endfilter -%}
40
- {%- else -%}
35
+ {%- if not signature -%}
36
+ {#- Always render cross-references outside of signatures. We don't need to stash them. -#}
37
+ <autoref identifier="{{ path }}" optional{% if title != path %} hover{% endif %}>{{ title }}</autoref>
38
+ {%- elif config.signature_crossrefs -%}
39
+ {#- We're in a signature and cross-references are enabled, we must render one and stash it. -#}
40
+ {%- filter stash_crossref(length=title|length) -%}
41
41
  <autoref identifier="{{ path }}" optional{% if title != path %} hover{% endif %}>{{ title }}</autoref>
42
- {%- endif -%}
42
+ {%- endfilter -%}
43
43
  {%- else -%}
44
+ {#- We're in a signature but cross-references are disabled, we just render the title. -#}
44
45
  {{ title }}
45
46
  {%- endif -%}
46
47
  {%- if not loop.last -%}.{%- endif -%}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mkdocstrings-python
3
- Version: 1.12.1
3
+ Version: 1.12.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
@@ -38,7 +38,7 @@ mkdocstrings_handlers/python/templates/material/_base/docstring/warns.html.jinja
38
38
  mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html,sha256=-aNSOHi5lvqheUzklSRThN7UeCdsqTHm35CyKi5yaWU,448
39
39
  mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html.jinja,sha256=a52QMKQ2udRBIhGa1eHX6fYFvkqG3XqgIkPULt7_oKw,4591
40
40
  mkdocstrings_handlers/python/templates/material/_base/expression.html,sha256=JU-ScDWoFk0m6x0Dx50LKN9yW7RzTWj4VYcJYEIQ144,430
41
- mkdocstrings_handlers/python/templates/material/_base/expression.html.jinja,sha256=1r4Lri9PcTNJmflCBwEKFlkgTWsh167SUKdB9G8H2uo,4134
41
+ mkdocstrings_handlers/python/templates/material/_base/expression.html.jinja,sha256=ce05dGs_UqKmXyvbDAOQHBH51vsA3kx0LZdpRH7Vx8Y,4388
42
42
  mkdocstrings_handlers/python/templates/material/_base/function.html,sha256=tFpXIt5sIhjXjTCXhtYZ4cGpbgdbaIdbm8HdP9Pccik,424
43
43
  mkdocstrings_handlers/python/templates/material/_base/function.html.jinja,sha256=BfYBsyL01U_rvMn0_U6HJ3Krf44_xLNCA_KNL3ZFq8I,5676
44
44
  mkdocstrings_handlers/python/templates/material/_base/labels.html,sha256=SJGvRoTYj9AImTRRn-SP4nGAdpfz-ai4gGgHGxMOJK8,418
@@ -177,8 +177,8 @@ 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.12.1.dist-info/METADATA,sha256=sVnWfW0sFv83Wz0i1E0jdy_mmYWPf38zqwe7sfFOc0U,5647
181
- mkdocstrings_python-1.12.1.dist-info/WHEEL,sha256=pM0IBB6ZwH3nkEPhtcp50KvKNX-07jYtnb1g1m6Z4Co,90
182
- mkdocstrings_python-1.12.1.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
183
- mkdocstrings_python-1.12.1.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
184
- mkdocstrings_python-1.12.1.dist-info/RECORD,,
180
+ mkdocstrings_python-1.12.2.dist-info/METADATA,sha256=RH5VUWlkBcVj2zPJgBHcUAisNrYxQRJAoGFYnYvX6_I,5647
181
+ mkdocstrings_python-1.12.2.dist-info/WHEEL,sha256=pM0IBB6ZwH3nkEPhtcp50KvKNX-07jYtnb1g1m6Z4Co,90
182
+ mkdocstrings_python-1.12.2.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
183
+ mkdocstrings_python-1.12.2.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
184
+ mkdocstrings_python-1.12.2.dist-info/RECORD,,