mkdocstrings-python 1.12.0__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 -%}
@@ -106,7 +106,7 @@ Context:
106
106
  {%- include "expression"|get_template with context -%}
107
107
  {%- endwith -%}
108
108
  {%- else -%}
109
- {{ parameter.default }}
109
+ {{ parameter.default|safe }}
110
110
  {%- endif -%}
111
111
  {%- endif -%}
112
112
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mkdocstrings-python
3
- Version: 1.12.0
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
@@ -54,7 +54,7 @@ mkdocstrings_handlers/python/templates/material/_base/languages/zh.html.jinja,sh
54
54
  mkdocstrings_handlers/python/templates/material/_base/module.html,sha256=cEq3DXlXfZ57NAK6CXA7OxtyeffgfUpWVvLW1O1aNzw,418
55
55
  mkdocstrings_handlers/python/templates/material/_base/module.html.jinja,sha256=gtYkBVqdRBVKiLKFHryDXJVT3DRIeqYFhqPXPFwsrc4,4076
56
56
  mkdocstrings_handlers/python/templates/material/_base/signature.html,sha256=7TcpvSL7n5pbg0Eokbx49vlLbY6YHM6S8o7aFpaxgXU,427
57
- mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja,sha256=YP5K8t4xUSmbImAehvrzfdCT9WxYVeZJVzSYEDbCjtk,4952
57
+ mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja,sha256=w1xl7dBzjkK4KGVMOoVngo_XcZQNmWlD3b7si3HVV0Q,4957
58
58
  mkdocstrings_handlers/python/templates/material/_base/summary.html,sha256=2OR2p8zJ5I0mkknX7ZY7qj59orJH4e9HVg0S5DaUUsU,421
59
59
  mkdocstrings_handlers/python/templates/material/_base/summary.html.jinja,sha256=Mvy_IeWRe0At4wKJC9TaIhK7fZyLpGHDWHlCsFSUXpw,732
60
60
  mkdocstrings_handlers/python/templates/material/_base/summary/attributes.html,sha256=CSrl1A7woDmRxgMpYHArnKQGgilSbk8fvXgsx1OzPwU,454
@@ -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.0.dist-info/METADATA,sha256=gvGESAKNRpK2IYHWb_hMLMuIjX3CZii9Okkc9DjEIX0,5647
181
- mkdocstrings_python-1.12.0.dist-info/WHEEL,sha256=pM0IBB6ZwH3nkEPhtcp50KvKNX-07jYtnb1g1m6Z4Co,90
182
- mkdocstrings_python-1.12.0.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
183
- mkdocstrings_python-1.12.0.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
184
- mkdocstrings_python-1.12.0.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,,