mkdocstrings-python 1.19.0__py3-none-any.whl → 2.0.1__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.
Files changed (147) hide show
  1. mkdocstrings_handlers/python/__init__.py +0 -4
  2. mkdocstrings_handlers/python/_internal/handler.py +6 -45
  3. mkdocstrings_handlers/python/_internal/rendering.py +14 -111
  4. mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja +2 -4
  5. mkdocstrings_handlers/python/templates/material/_base/children.html.jinja +9 -6
  6. mkdocstrings_handlers/python/templates/material/_base/class.html.jinja +13 -18
  7. mkdocstrings_handlers/python/templates/material/_base/docstring/attributes.html.jinja +5 -9
  8. mkdocstrings_handlers/python/templates/material/_base/docstring/classes.html.jinja +1 -2
  9. mkdocstrings_handlers/python/templates/material/_base/docstring/examples.html.jinja +1 -2
  10. mkdocstrings_handlers/python/templates/material/_base/docstring/functions.html.jinja +1 -2
  11. mkdocstrings_handlers/python/templates/material/_base/docstring/modules.html.jinja +1 -2
  12. mkdocstrings_handlers/python/templates/material/_base/docstring/other_parameters.html.jinja +4 -8
  13. mkdocstrings_handlers/python/templates/material/_base/docstring/parameters.html.jinja +7 -14
  14. mkdocstrings_handlers/python/templates/material/_base/docstring/raises.html.jinja +4 -8
  15. mkdocstrings_handlers/python/templates/material/_base/docstring/receives.html.jinja +5 -10
  16. mkdocstrings_handlers/python/templates/material/_base/docstring/returns.html.jinja +5 -10
  17. mkdocstrings_handlers/python/templates/material/_base/docstring/type_aliases.html.jinja +1 -1
  18. mkdocstrings_handlers/python/templates/material/_base/docstring/type_parameters.html.jinja +9 -9
  19. mkdocstrings_handlers/python/templates/material/_base/docstring/warns.html.jinja +4 -8
  20. mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html.jinja +5 -10
  21. mkdocstrings_handlers/python/templates/material/_base/docstring.html.jinja +15 -30
  22. mkdocstrings_handlers/python/templates/material/_base/function.html.jinja +5 -9
  23. mkdocstrings_handlers/python/templates/material/_base/language.html.jinja +3 -6
  24. mkdocstrings_handlers/python/templates/material/_base/languages/en.html.jinja +5 -0
  25. mkdocstrings_handlers/python/templates/material/_base/languages/ja.html.jinja +13 -8
  26. mkdocstrings_handlers/python/templates/material/_base/languages/zh.html.jinja +13 -8
  27. mkdocstrings_handlers/python/templates/material/_base/module.html.jinja +4 -8
  28. mkdocstrings_handlers/python/templates/material/_base/signature.html.jinja +3 -6
  29. mkdocstrings_handlers/python/templates/material/_base/summary/attributes.html.jinja +1 -2
  30. mkdocstrings_handlers/python/templates/material/_base/summary/classes.html.jinja +1 -2
  31. mkdocstrings_handlers/python/templates/material/_base/summary/functions.html.jinja +1 -2
  32. mkdocstrings_handlers/python/templates/material/_base/summary/modules.html.jinja +1 -2
  33. mkdocstrings_handlers/python/templates/material/_base/summary/type_aliases.html.jinja +1 -2
  34. mkdocstrings_handlers/python/templates/material/_base/summary.html.jinja +5 -10
  35. mkdocstrings_handlers/python/templates/material/_base/type_alias.html.jinja +3 -6
  36. mkdocstrings_handlers/python/templates/material/_base/type_parameters.html.jinja +2 -4
  37. mkdocstrings_handlers/python/templates/readthedocs/_base/class.html.jinja +18 -18
  38. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/attributes.html.jinja +2 -4
  39. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/other_parameters.html.jinja +2 -4
  40. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/parameters.html.jinja +3 -6
  41. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/raises.html.jinja +2 -4
  42. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/receives.html.jinja +2 -4
  43. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/returns.html.jinja +2 -4
  44. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/warns.html.jinja +2 -4
  45. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/yields.html.jinja +2 -4
  46. mkdocstrings_handlers/python/templates/readthedocs/_base/language.html.jinja +3 -6
  47. mkdocstrings_python-2.0.1.dist-info/METADATA +179 -0
  48. mkdocstrings_python-2.0.1.dist-info/RECORD +121 -0
  49. {mkdocstrings_python-1.19.0.dist-info → mkdocstrings_python-2.0.1.dist-info}/WHEEL +1 -1
  50. mkdocstrings_handlers/python/config.py +0 -17
  51. mkdocstrings_handlers/python/handler.py +0 -17
  52. mkdocstrings_handlers/python/rendering.py +0 -17
  53. mkdocstrings_handlers/python/templates/material/_base/attribute.html +0 -10
  54. mkdocstrings_handlers/python/templates/material/_base/children.html +0 -10
  55. mkdocstrings_handlers/python/templates/material/_base/class.html +0 -10
  56. mkdocstrings_handlers/python/templates/material/_base/docstring/admonition.html +0 -10
  57. mkdocstrings_handlers/python/templates/material/_base/docstring/attributes.html +0 -10
  58. mkdocstrings_handlers/python/templates/material/_base/docstring/classes.html +0 -10
  59. mkdocstrings_handlers/python/templates/material/_base/docstring/examples.html +0 -10
  60. mkdocstrings_handlers/python/templates/material/_base/docstring/functions.html +0 -10
  61. mkdocstrings_handlers/python/templates/material/_base/docstring/modules.html +0 -10
  62. mkdocstrings_handlers/python/templates/material/_base/docstring/other_parameters.html +0 -10
  63. mkdocstrings_handlers/python/templates/material/_base/docstring/parameters.html +0 -10
  64. mkdocstrings_handlers/python/templates/material/_base/docstring/raises.html +0 -10
  65. mkdocstrings_handlers/python/templates/material/_base/docstring/receives.html +0 -10
  66. mkdocstrings_handlers/python/templates/material/_base/docstring/returns.html +0 -10
  67. mkdocstrings_handlers/python/templates/material/_base/docstring/type_aliases.html +0 -10
  68. mkdocstrings_handlers/python/templates/material/_base/docstring/type_parameters.html +0 -10
  69. mkdocstrings_handlers/python/templates/material/_base/docstring/warns.html +0 -10
  70. mkdocstrings_handlers/python/templates/material/_base/docstring/yields.html +0 -10
  71. mkdocstrings_handlers/python/templates/material/_base/docstring.html +0 -10
  72. mkdocstrings_handlers/python/templates/material/_base/expression.html +0 -10
  73. mkdocstrings_handlers/python/templates/material/_base/function.html +0 -10
  74. mkdocstrings_handlers/python/templates/material/_base/labels.html +0 -10
  75. mkdocstrings_handlers/python/templates/material/_base/language.html +0 -10
  76. mkdocstrings_handlers/python/templates/material/_base/languages/en.html +0 -10
  77. mkdocstrings_handlers/python/templates/material/_base/languages/ja.html +0 -10
  78. mkdocstrings_handlers/python/templates/material/_base/languages/zh.html +0 -10
  79. mkdocstrings_handlers/python/templates/material/_base/module.html +0 -10
  80. mkdocstrings_handlers/python/templates/material/_base/signature.html +0 -10
  81. mkdocstrings_handlers/python/templates/material/_base/summary/attributes.html +0 -10
  82. mkdocstrings_handlers/python/templates/material/_base/summary/classes.html +0 -10
  83. mkdocstrings_handlers/python/templates/material/_base/summary/functions.html +0 -10
  84. mkdocstrings_handlers/python/templates/material/_base/summary/modules.html +0 -10
  85. mkdocstrings_handlers/python/templates/material/_base/summary/type_aliases.html +0 -10
  86. mkdocstrings_handlers/python/templates/material/_base/summary.html +0 -10
  87. mkdocstrings_handlers/python/templates/material/_base/type_alias.html +0 -10
  88. mkdocstrings_handlers/python/templates/material/_base/type_parameters.html +0 -10
  89. mkdocstrings_handlers/python/templates/material/attribute.html +0 -2
  90. mkdocstrings_handlers/python/templates/material/children.html +0 -2
  91. mkdocstrings_handlers/python/templates/material/class.html +0 -2
  92. mkdocstrings_handlers/python/templates/material/docstring/admonition.html +0 -2
  93. mkdocstrings_handlers/python/templates/material/docstring/attributes.html +0 -2
  94. mkdocstrings_handlers/python/templates/material/docstring/classes.html +0 -2
  95. mkdocstrings_handlers/python/templates/material/docstring/examples.html +0 -2
  96. mkdocstrings_handlers/python/templates/material/docstring/functions.html +0 -2
  97. mkdocstrings_handlers/python/templates/material/docstring/modules.html +0 -2
  98. mkdocstrings_handlers/python/templates/material/docstring/other_parameters.html +0 -2
  99. mkdocstrings_handlers/python/templates/material/docstring/parameters.html +0 -2
  100. mkdocstrings_handlers/python/templates/material/docstring/raises.html +0 -2
  101. mkdocstrings_handlers/python/templates/material/docstring/receives.html +0 -2
  102. mkdocstrings_handlers/python/templates/material/docstring/returns.html +0 -2
  103. mkdocstrings_handlers/python/templates/material/docstring/warns.html +0 -2
  104. mkdocstrings_handlers/python/templates/material/docstring/yields.html +0 -2
  105. mkdocstrings_handlers/python/templates/material/docstring.html +0 -2
  106. mkdocstrings_handlers/python/templates/material/expression.html +0 -2
  107. mkdocstrings_handlers/python/templates/material/function.html +0 -2
  108. mkdocstrings_handlers/python/templates/material/labels.html +0 -2
  109. mkdocstrings_handlers/python/templates/material/language.html +0 -2
  110. mkdocstrings_handlers/python/templates/material/languages/en.html +0 -2
  111. mkdocstrings_handlers/python/templates/material/languages/ja.html +0 -2
  112. mkdocstrings_handlers/python/templates/material/languages/zh.html +0 -2
  113. mkdocstrings_handlers/python/templates/material/module.html +0 -2
  114. mkdocstrings_handlers/python/templates/material/signature.html +0 -2
  115. mkdocstrings_handlers/python/templates/material/summary/attributes.html +0 -2
  116. mkdocstrings_handlers/python/templates/material/summary/classes.html +0 -2
  117. mkdocstrings_handlers/python/templates/material/summary/functions.html +0 -2
  118. mkdocstrings_handlers/python/templates/material/summary/modules.html +0 -2
  119. mkdocstrings_handlers/python/templates/material/summary.html +0 -2
  120. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/attributes.html +0 -10
  121. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/other_parameters.html +0 -10
  122. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/parameters.html +0 -10
  123. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/raises.html +0 -10
  124. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/receives.html +0 -10
  125. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/returns.html +0 -10
  126. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/warns.html +0 -10
  127. mkdocstrings_handlers/python/templates/readthedocs/_base/docstring/yields.html +0 -10
  128. mkdocstrings_handlers/python/templates/readthedocs/_base/language.html +0 -10
  129. mkdocstrings_handlers/python/templates/readthedocs/_base/languages/en.html +0 -10
  130. mkdocstrings_handlers/python/templates/readthedocs/_base/languages/ja.html +0 -10
  131. mkdocstrings_handlers/python/templates/readthedocs/_base/languages/zh.html +0 -10
  132. mkdocstrings_handlers/python/templates/readthedocs/docstring/attributes.html +0 -2
  133. mkdocstrings_handlers/python/templates/readthedocs/docstring/other_parameters.html +0 -2
  134. mkdocstrings_handlers/python/templates/readthedocs/docstring/parameters.html +0 -2
  135. mkdocstrings_handlers/python/templates/readthedocs/docstring/raises.html +0 -2
  136. mkdocstrings_handlers/python/templates/readthedocs/docstring/receives.html +0 -2
  137. mkdocstrings_handlers/python/templates/readthedocs/docstring/returns.html +0 -2
  138. mkdocstrings_handlers/python/templates/readthedocs/docstring/warns.html +0 -2
  139. mkdocstrings_handlers/python/templates/readthedocs/docstring/yields.html +0 -2
  140. mkdocstrings_handlers/python/templates/readthedocs/language.html +0 -2
  141. mkdocstrings_handlers/python/templates/readthedocs/languages/en.html +0 -2
  142. mkdocstrings_handlers/python/templates/readthedocs/languages/ja.html +0 -2
  143. mkdocstrings_handlers/python/templates/readthedocs/languages/zh.html +0 -2
  144. mkdocstrings_python-1.19.0.dist-info/METADATA +0 -121
  145. mkdocstrings_python-1.19.0.dist-info/RECORD +0 -215
  146. {mkdocstrings_python-1.19.0.dist-info → mkdocstrings_python-2.0.1.dist-info}/entry_points.txt +0 -0
  147. {mkdocstrings_python-1.19.0.dist-info → mkdocstrings_python-2.0.1.dist-info}/licenses/LICENSE +0 -0
@@ -15,8 +15,7 @@ Context:
15
15
  {{ log.debug("Rendering parameters section") }}
16
16
  {% endblock logs %}
17
17
 
18
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
19
- {% import "language"|get_template as lang with context %}
18
+ {% import "language.html.jinja" as lang with context %}
20
19
  {#- Language module providing the `t` translation method. -#}
21
20
 
22
21
  {% if config.docstring_section_style == "table" %}
@@ -54,8 +53,7 @@ Context:
54
53
  <td>
55
54
  {% if parameter.annotation %}
56
55
  {% with expression = parameter.annotation, backlink_type = "used-by" %}
57
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
58
- <code>{% include "expression"|get_template with context %}</code>
56
+ <code>{% include "expression.html.jinja" with context %}</code>
59
57
  {% endwith %}
60
58
  {% endif %}
61
59
  </td>
@@ -67,8 +65,7 @@ Context:
67
65
  <td>
68
66
  {% if parameter.default %}
69
67
  {% with expression = parameter.default, backlink_type = "used-by" %}
70
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
71
- <code>{% include "expression"|get_template with context %}</code>
68
+ <code>{% include "expression.html.jinja" with context %}</code>
72
69
  {% endwith %}
73
70
  {% else %}
74
71
  <em>{{ lang.t("required") }}</em>
@@ -102,12 +99,10 @@ Context:
102
99
  {% endif %}
103
100
  {% if parameter.annotation %}
104
101
  {% with expression = parameter.annotation, backlink_type = "used-by" %}
105
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
106
- (<code>{% include "expression"|get_template with context %}</code>
102
+ (<code>{% include "expression.html.jinja" with context %}</code>
107
103
  {%- if parameter.default %}, {{ lang.t("default:") }}
108
104
  {% with expression = parameter.default, backlink_type = "used-by" %}
109
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
110
- <code>{% include "expression"|get_template with context %}</code>
105
+ <code>{% include "expression.html.jinja" with context %}</code>
111
106
  {% endwith %}
112
107
  {% endif %})
113
108
  {% endwith %}
@@ -158,8 +153,7 @@ Context:
158
153
  <span class="doc-param-annotation">
159
154
  <b>{{ lang.t("TYPE:") }}</b>
160
155
  {% with expression = parameter.annotation, backlink_type = "used-by" %}
161
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
162
- <code>{% include "expression"|get_template with context %}</code>
156
+ <code>{% include "expression.html.jinja" with context %}</code>
163
157
  {% endwith %}
164
158
  </span>
165
159
  {% endif %}
@@ -167,8 +161,7 @@ Context:
167
161
  <span class="doc-param-default">
168
162
  <b>{{ lang.t("DEFAULT:") }}</b>
169
163
  {% with expression = parameter.default, backlink_type = "used-by" %}
170
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
171
- <code>{% include "expression"|get_template with context %}</code>
164
+ <code>{% include "expression.html.jinja" with context %}</code>
172
165
  {% endwith %}
173
166
  </span>
174
167
  {% endif %}
@@ -15,8 +15,7 @@ Context:
15
15
  {{ log.debug("Rendering raises section") }}
16
16
  {% endblock logs %}
17
17
 
18
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
19
- {% import "language"|get_template as lang with context %}
18
+ {% import "language.html.jinja" as lang with context %}
20
19
  {#- Language module providing the `t` translation method. -#}
21
20
 
22
21
  {% if config.docstring_section_style == "table" %}
@@ -36,8 +35,7 @@ Context:
36
35
  <td>
37
36
  {% if raises.annotation %}
38
37
  {% with expression = raises.annotation, backlink_type = "raised-by" %}
39
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
40
- <code>{% include "expression"|get_template with context %}</code>
38
+ <code>{% include "expression.html.jinja" with context %}</code>
41
39
  {% endwith %}
42
40
  {% endif %}
43
41
  </td>
@@ -60,8 +58,7 @@ Context:
60
58
  <li class="doc-section-item field-body">
61
59
  {% if raises.annotation %}
62
60
  {% with expression = raises.annotation, backlink_type = "raised-by" %}
63
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
64
- <code>{% include "expression"|get_template with context %}</code>
61
+ <code>{% include "expression.html.jinja" with context %}</code>
65
62
  {% endwith %}
66
63
  –
67
64
  {% endif %}
@@ -88,8 +85,7 @@ Context:
88
85
  <td>
89
86
  <span class="doc-raises-annotation">
90
87
  {% with expression = raises.annotation, backlink_type = "raised-by" %}
91
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
92
- <code>{% include "expression"|get_template with context %}</code>
88
+ <code>{% include "expression.html.jinja" with context %}</code>
93
89
  {% endwith %}
94
90
  </span>
95
91
  </td>
@@ -15,8 +15,7 @@ Context:
15
15
  {{ log.debug("Rendering receives section") }}
16
16
  {% endblock logs %}
17
17
 
18
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
19
- {% import "language"|get_template as lang with context %}
18
+ {% import "language.html.jinja" as lang with context %}
20
19
  {#- Language module providing the `t` translation method. -#}
21
20
 
22
21
  {% if config.docstring_section_style == "table" %}
@@ -39,8 +38,7 @@ Context:
39
38
  <td>
40
39
  {% if receives.annotation %}
41
40
  {% with expression = receives.annotation, backlink_type = "received-by" %}
42
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
43
- <code>{% include "expression"|get_template with context %}</code>
41
+ <code>{% include "expression.html.jinja" with context %}</code>
44
42
  {% endwith %}
45
43
  {% endif %}
46
44
  </td>
@@ -65,8 +63,7 @@ Context:
65
63
  {% if receives.annotation %}
66
64
  {% with expression = receives.annotation, backlink_type = "received-by" %}
67
65
  {% if receives.name %} ({% endif %}
68
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
69
- <code>{% include "expression"|get_template with context %}</code>
66
+ <code>{% include "expression.html.jinja" with context %}</code>
70
67
  {% if receives.name %}){% endif %}
71
68
  {% endwith %}
72
69
  {% endif %}
@@ -97,8 +94,7 @@ Context:
97
94
  {% elif receives.annotation %}
98
95
  <span class="doc-receives-annotation">
99
96
  {% with expression = receives.annotation, backlink_type = "received-by" %}
100
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
101
- <code>{% include "expression"|get_template with context %}</code>
97
+ <code>{% include "expression.html.jinja" with context %}</code>
102
98
  {% endwith %}
103
99
  </span>
104
100
  {% endif %}
@@ -112,8 +108,7 @@ Context:
112
108
  <span class="doc-receives-annotation">
113
109
  <b>{{ lang.t("TYPE:") }}</b>
114
110
  {% with expression = receives.annotation, backlink_type = "received-by" %}
115
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
116
- <code>{% include "expression"|get_template with context %}</code>
111
+ <code>{% include "expression.html.jinja" with context %}</code>
117
112
  {% endwith %}
118
113
  </span>
119
114
  </p>
@@ -15,8 +15,7 @@ Context:
15
15
  {{ log.debug("Rendering returns section") }}
16
16
  {% endblock logs %}
17
17
 
18
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
19
- {% import "language"|get_template as lang with context %}
18
+ {% import "language.html.jinja" as lang with context %}
20
19
  {#- Language module providing the `t` translation method. -#}
21
20
 
22
21
  {% if config.docstring_section_style == "table" %}
@@ -39,8 +38,7 @@ Context:
39
38
  <td>
40
39
  {% if returns.annotation %}
41
40
  {% with expression = returns.annotation, backlink_type = "returned-by" %}
42
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
43
- <code>{% include "expression"|get_template with context %}</code>
41
+ <code>{% include "expression.html.jinja" with context %}</code>
44
42
  {% endwith %}
45
43
  {% endif %}
46
44
  </td>
@@ -65,8 +63,7 @@ Context:
65
63
  {% if returns.annotation %}
66
64
  {% with expression = returns.annotation, backlink_type = "returned-by" %}
67
65
  {% if returns.name %} ({% endif %}
68
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
69
- <code>{% include "expression"|get_template with context %}</code>
66
+ <code>{% include "expression.html.jinja" with context %}</code>
70
67
  {% if returns.name %}){% endif %}
71
68
  {% endwith %}
72
69
  {% endif %}
@@ -97,8 +94,7 @@ Context:
97
94
  {% elif returns.annotation %}
98
95
  <span class="doc-returns-annotation">
99
96
  {% with expression = returns.annotation, backlink_type = "returned-by" %}
100
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
101
- <code>{% include "expression"|get_template with context %}</code>
97
+ <code>{% include "expression.html.jinja" with context %}</code>
102
98
  {% endwith %}
103
99
  </span>
104
100
  {% endif %}
@@ -112,8 +108,7 @@ Context:
112
108
  <span class="doc-returns-annotation">
113
109
  <b>{{ lang.t("TYPE:") }}</b>
114
110
  {% with expression = returns.annotation, backlink_type = "returned-by" %}
115
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
116
- <code>{% include "expression"|get_template with context %}</code>
111
+ <code>{% include "expression.html.jinja" with context %}</code>
117
112
  {% endwith %}
118
113
  </span>
119
114
  </p>
@@ -15,7 +15,7 @@ Context:
15
15
  {{ log.debug("Rendering type aliases section") }}
16
16
  {% endblock logs %}
17
17
 
18
- {% import "language"|get_template as lang with context %}
18
+ {% import "language.html.jinja" as lang with context %}
19
19
  {#- Language module providing the `t` translation method. -#}
20
20
 
21
21
  {% if config.docstring_section_style == "table" %}
@@ -15,7 +15,7 @@ Context:
15
15
  {{ log.debug("Rendering type parameters section") }}
16
16
  {% endblock logs %}
17
17
 
18
- {% import "language"|get_template as lang with context %}
18
+ {% import "language.html.jinja" as lang with context %}
19
19
  {#- Language module providing the `t` translation method. -#}
20
20
 
21
21
  {% if config.docstring_section_style == "table" %}
@@ -56,7 +56,7 @@ Context:
56
56
  <td>
57
57
  {% if type_parameter.annotation %}
58
58
  {% with expression = type_parameter.annotation %}
59
- <code>{% include "expression"|get_template with context %}</code>
59
+ <code>{% include "expression.html.jinja" with context %}</code>
60
60
  {% endwith %}
61
61
  {% endif %}
62
62
  </td>
@@ -68,7 +68,7 @@ Context:
68
68
  <td>
69
69
  {% if type_parameter.default %}
70
70
  {% with expression = type_parameter.default %}
71
- <code>{% include "expression"|get_template with context %}</code>
71
+ <code>{% include "expression.html.jinja" with context %}</code>
72
72
  {% endwith %}
73
73
  {% else %}
74
74
  <em>{{ lang.t("required") }}</em>
@@ -108,12 +108,12 @@ Context:
108
108
  {%- endif -%}
109
109
  {%- if type_parameter.bound -%}
110
110
  {%- with expression = type_parameter.bound -%}
111
- <code>{% include "expression"|get_template with context %}</code>
111
+ <code>{% include "expression.html.jinja" with context %}</code>
112
112
  {%- endwith -%}
113
113
  {%- if type_parameter.default %}, {% endif -%}
114
114
  {%- elif type_parameter.constraints -%}
115
115
  {%- for expression in type_parameter.constraints -%}
116
- <code>{% include "expression"|get_template with context %}</code>
116
+ <code>{% include "expression.html.jinja" with context %}</code>
117
117
  {%- if not loop.last %}, {% endif -%}
118
118
  {%- endfor -%}
119
119
  {%- if type_parameter.default %}, {% endif -%}
@@ -121,7 +121,7 @@ Context:
121
121
  {%- if type_parameter.default -%}
122
122
  {{ lang.t("default:") }}
123
123
  {% with expression = type_parameter.default %}
124
- <code>{% include "expression"|get_template with context %}</code>
124
+ <code>{% include "expression.html.jinja" with context %}</code>
125
125
  {%- endwith -%}
126
126
  {%- endif -%}
127
127
  {%- if type_parameter.constraints or type_parameter.default -%}
@@ -177,7 +177,7 @@ Context:
177
177
  <b>{{ lang.t("CONSTRAINTS:") }}</b>
178
178
  {% for constraint in type_parameter.constraints -%}
179
179
  {%- with expression = constraint -%}
180
- <code>{% include "expression"|get_template with context %}</code>
180
+ <code>{% include "expression.html.jinja" with context %}</code>
181
181
  {%- endwith -%}
182
182
  {%- if not loop.last %}, {% endif -%}
183
183
  {% endfor %}
@@ -186,7 +186,7 @@ Context:
186
186
  <span class="doc-type_param-bound">
187
187
  <b>{{ lang.t("BOUND:") }}</b>
188
188
  {% with expression = type_parameter.bound %}
189
- <code>{% include "expression"|get_template with context %}</code>
189
+ <code>{% include "expression.html.jinja" with context %}</code>
190
190
  {% endwith %}
191
191
  </span>
192
192
  {% endif %}
@@ -194,7 +194,7 @@ Context:
194
194
  <span class="doc-type_param-default">
195
195
  <b>{{ lang.t("DEFAULT:") }}</b>
196
196
  {% with expression = type_parameter.default %}
197
- <code>{% include "expression"|get_template with context %}</code>
197
+ <code>{% include "expression.html.jinja" with context %}</code>
198
198
  {% endwith %}
199
199
  </span>
200
200
  {% endif %}
@@ -15,8 +15,7 @@ Context:
15
15
  {{ log.debug("Rendering warns section") }}
16
16
  {% endblock logs %}
17
17
 
18
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
19
- {% import "language"|get_template as lang with context %}
18
+ {% import "language.html.jinja" as lang with context %}
20
19
  {#- Language module providing the `t` translation method. -#}
21
20
 
22
21
  {% if config.docstring_section_style == "table" %}
@@ -36,8 +35,7 @@ Context:
36
35
  <td>
37
36
  {% if warns.annotation %}
38
37
  {% with expression = warns.annotation, backlink_type = "emitted-by" %}
39
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
40
- <code>{% include "expression"|get_template with context %}</code>
38
+ <code>{% include "expression.html.jinja" with context %}</code>
41
39
  {% endwith %}
42
40
  {% endif %}
43
41
  </td>
@@ -60,8 +58,7 @@ Context:
60
58
  <li class="doc-section-item field-body">
61
59
  {% if warns.annotation %}
62
60
  {% with expression = warns.annotation, backlink_type = "emitted-by" %}
63
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
64
- <code>{% include "expression"|get_template with context %}</code>
61
+ <code>{% include "expression.html.jinja" with context %}</code>
65
62
  {% endwith %}
66
63
  –
67
64
  {% endif %}
@@ -88,8 +85,7 @@ Context:
88
85
  <td>
89
86
  <span class="doc-warns-annotation">
90
87
  {% with expression = warns.annotation, backlink_type = "emitted-by" %}
91
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
92
- <code>{% include "expression"|get_template with context %}</code>
88
+ <code>{% include "expression.html.jinja" with context %}</code>
93
89
  {% endwith %}
94
90
  </span>
95
91
  </td>
@@ -15,8 +15,7 @@ Context:
15
15
  {{ log.debug("Rendering yields section") }}
16
16
  {% endblock logs %}
17
17
 
18
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
19
- {% import "language"|get_template as lang with context %}
18
+ {% import "language.html.jinja" as lang with context %}
20
19
  {#- Language module providing the `t` translation method. -#}
21
20
 
22
21
  {% if config.docstring_section_style == "table" %}
@@ -39,8 +38,7 @@ Context:
39
38
  <td>
40
39
  {% if yields.annotation %}
41
40
  {% with expression = yields.annotation, backlink_type = "yielded-by" %}
42
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
43
- <code>{% include "expression"|get_template with context %}</code>
41
+ <code>{% include "expression.html.jinja" with context %}</code>
44
42
  {% endwith %}
45
43
  {% endif %}
46
44
  </td>
@@ -65,8 +63,7 @@ Context:
65
63
  {% if yields.annotation %}
66
64
  {% with expression = yields.annotation, backlink_type = "yielded-by" %}
67
65
  {% if yields.name %} ({% endif %}
68
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
69
- <code>{% include "expression"|get_template with context %}</code>
66
+ <code>{% include "expression.html.jinja" with context %}</code>
70
67
  {% if yields.name %}){% endif %}
71
68
  {% endwith %}
72
69
  {% endif %}
@@ -97,8 +94,7 @@ Context:
97
94
  {% elif yields.annotation %}
98
95
  <span class="doc-yields-annotation">
99
96
  {% with expression = yields.annotation, backlink_type = "yielded-by" %}
100
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
101
- <code>{% include "expression"|get_template with context %}</code>
97
+ <code>{% include "expression.html.jinja" with context %}</code>
102
98
  {% endwith %}
103
99
  </span>
104
100
  {% endif %}
@@ -112,8 +108,7 @@ Context:
112
108
  <span class="doc-yields-annotation">
113
109
  <b>{{ lang.t("TYPE:") }}:</b>
114
110
  {% with expression = yields.annotation, backlink_type = "yielded-by" %}
115
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
116
- <code>{% include "expression"|get_template with context %}</code>
111
+ <code>{% include "expression.html.jinja" with context %}</code>
117
112
  {% endwith %}
118
113
  </span>
119
114
  </p>
@@ -24,50 +24,35 @@ Context:
24
24
  {% if config.show_docstring_description and section.kind.value == "text" %}
25
25
  {{ section.value|convert_markdown(heading_level, html_id, autoref_hook=autoref_hook) }}
26
26
  {% elif config.show_docstring_attributes and section.kind.value == "attributes" %}
27
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
28
- {% include "docstring/attributes"|get_template with context %}
27
+ {% include "docstring/attributes.html.jinja" with context %}
29
28
  {% elif config.show_docstring_functions and section.kind.value == "functions" %}
30
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
31
- {% include "docstring/functions"|get_template with context %}
29
+ {% include "docstring/functions.html.jinja" with context %}
32
30
  {% elif config.show_docstring_classes and section.kind.value == "classes" %}
33
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
34
- {% include "docstring/classes"|get_template with context %}
31
+ {% include "docstring/classes.html.jinja" with context %}
35
32
  {% elif config.show_docstring_type_aliases and section.kind.value == "type aliases" %}
36
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
37
- {% include "docstring/type_aliases"|get_template with context %}
33
+ {% include "docstring/type_aliases.html.jinja" with context %}
38
34
  {% elif config.show_docstring_modules and section.kind.value == "modules" %}
39
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
40
- {% include "docstring/modules"|get_template with context %}
35
+ {% include "docstring/modules.html.jinja" with context %}
41
36
  {% elif config.show_docstring_type_parameters and section.kind.value == "type parameters" %}
42
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
43
- {% include "docstring/type_parameters"|get_template with context %}
37
+ {% include "docstring/type_parameters.html.jinja" with context %}
44
38
  {% elif config.show_docstring_parameters and section.kind.value == "parameters" %}
45
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
46
- {% include "docstring/parameters"|get_template with context %}
39
+ {% include "docstring/parameters.html.jinja" with context %}
47
40
  {% elif config.show_docstring_other_parameters and section.kind.value == "other parameters" %}
48
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
49
- {% include "docstring/other_parameters"|get_template with context %}
41
+ {% include "docstring/other_parameters.html.jinja" with context %}
50
42
  {% elif config.show_docstring_raises and section.kind.value == "raises" %}
51
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
52
- {% include "docstring/raises"|get_template with context %}
43
+ {% include "docstring/raises.html.jinja" with context %}
53
44
  {% elif config.show_docstring_warns and section.kind.value == "warns" %}
54
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
55
- {% include "docstring/warns"|get_template with context %}
45
+ {% include "docstring/warns.html.jinja" with context %}
56
46
  {% elif config.show_docstring_yields and section.kind.value == "yields" %}
57
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
58
- {% include "docstring/yields"|get_template with context %}
47
+ {% include "docstring/yields.html.jinja" with context %}
59
48
  {% elif config.show_docstring_receives and section.kind.value == "receives" %}
60
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
61
- {% include "docstring/receives"|get_template with context %}
49
+ {% include "docstring/receives.html.jinja" with context %}
62
50
  {% elif config.show_docstring_returns and section.kind.value == "returns" %}
63
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
64
- {% include "docstring/returns"|get_template with context %}
51
+ {% include "docstring/returns.html.jinja" with context %}
65
52
  {% elif config.show_docstring_examples and section.kind.value == "examples" %}
66
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
67
- {% include "docstring/examples"|get_template with context %}
53
+ {% include "docstring/examples.html.jinja" with context %}
68
54
  {% elif config.show_docstring_description and section.kind.value == "admonition" %}
69
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
70
- {% include "docstring/admonition"|get_template with context %}
55
+ {% include "docstring/admonition.html.jinja" with context %}
71
56
  {% endif %}
72
57
  {% endfor %}
73
58
  {% endwith %}
@@ -17,8 +17,7 @@ Context:
17
17
  {{ log.debug("Rendering " + function.path) }}
18
18
  {% endblock logs %}
19
19
 
20
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
21
- {% import "language"|get_template as lang with context %}
20
+ {% import "language.html.jinja" as lang with context %}
22
21
  {#- Language module providing the `t` translation method. -#}
23
22
 
24
23
  <div class="doc doc-object doc-function">
@@ -62,9 +61,8 @@ Context:
62
61
  {% else %}
63
62
  {%+ filter highlight(language="python", inline=True) -%}
64
63
  {{ function_name }}
65
- {#- YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within block. -#}
66
- {%- include "type_parameters"|get_template with context -%}
67
- {%- include "signature"|get_template with context -%}
64
+ {%- include "type_parameters.html.jinja" with context -%}
65
+ {%- include "signature.html.jinja" with context -%}
68
66
  {%- endfilter %}
69
67
  {% endif %}
70
68
  {% endblock heading %}
@@ -75,8 +73,7 @@ Context:
75
73
  This block renders the labels for the function.
76
74
  -#}
77
75
  {% with labels = function.labels %}
78
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
79
- {% include "labels"|get_template with context %}
76
+ {% include "labels.html.jinja" with context %}
80
77
  {% endwith %}
81
78
  {% endblock labels %}
82
79
 
@@ -134,8 +131,7 @@ Context:
134
131
  This block renders the docstring for the function.
135
132
  -#}
136
133
  {% with docstring_sections = function.docstring.parsed %}
137
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
138
- {% include "docstring"|get_template with context %}
134
+ {% include "docstring.html.jinja" with context %}
139
135
  {% endwith %}
140
136
  {% endblock docstring %}
141
137
 
@@ -7,15 +7,12 @@
7
7
  -#}
8
8
  {% endblock logs %}
9
9
 
10
- {# YORE: Bump 2: Replace `| get_template` with `~ ".html.jinja"` within line. #}
11
- {% set lang_pth = "languages/" ~ locale | get_template %}
10
+ {% set lang_pth = "languages/" ~ locale ~ ".html.jinja" %}
12
11
  {% if lang_pth is existing_template %}
13
12
  {% import lang_pth as lang %}
14
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
15
- {% import "languages/en"|get_template as fallback %}
13
+ {% import "languages/en.html.jinja" as fallback %}
16
14
  {% macro t(key) %}{{ lang.t(key) or fallback.t(key) }}{% endmacro %}
17
15
  {% else %}
18
- {# YORE: Bump 2: Replace `"|get_template` with `.html.jinja"` within line. #}
19
- {% import "languages/en"|get_template as lang %}
16
+ {% import "languages/en.html.jinja" as lang %}
20
17
  {% macro t(key) %}{{ lang.t(key) }}{% endmacro %}
21
18
  {% endif %}
@@ -9,9 +9,11 @@
9
9
 
10
10
  {% macro t(key) %}{{ {
11
11
  "ATTRIBUTE": "ATTRIBUTE",
12
+ "Attributes": "Attributes",
12
13
  "Attributes:": "Attributes:",
13
14
  "BOUND:": "BOUND:",
14
15
  "Bound or Constraints": "Bound or Constraints",
16
+ "Classes": "Classes",
15
17
  "Classes:": "Classes:",
16
18
  "Class Type Parameters:": "Class Type Parameters:",
17
19
  "CLASS TYPE PARAMETER": "CLASS TYPE PARAMETER",
@@ -23,12 +25,14 @@
23
25
  "DESCRIPTION": "DESCRIPTION",
24
26
  "Description": "Description",
25
27
  "Examples:": "Examples:",
28
+ "Functions": "Functions",
26
29
  "Functions:": "Functions:",
27
30
  "FUNCTION": "FUNCTION",
28
31
  "Init Type Parameters:": "Init Type Parameters:",
29
32
  "INIT TYPE PARAMETER": "INIT TYPE PARAMETER",
30
33
  "Methods:": "Methods:",
31
34
  "METHOD": "METHOD",
35
+ "Modules": "Modules",
32
36
  "Modules:": "Modules:",
33
37
  "MODULE": "MODULE",
34
38
  "Name": "Name",
@@ -45,6 +49,7 @@
45
49
  "Source code in": "Source code in",
46
50
  "TYPE:": "TYPE:",
47
51
  "Type": "Type",
52
+ "Type Aliases": "Type Aliases",
48
53
  "Type Aliases:": "Type Aliases:",
49
54
  "TYPE ALIAS": "TYPE ALIAS",
50
55
  "Type Parameters:": "Type Parameters:",
@@ -9,26 +9,30 @@
9
9
 
10
10
  {% macro t(key) %}{{ {
11
11
  "ATTRIBUTE": "属性",
12
+ "Attributes": "属性",
12
13
  "Attributes:": "属性:",
13
- "BOUND:": "BOUND:",
14
- "Bound or Constraints": "Bound or Constraints",
14
+ "BOUND:": "境界:",
15
+ "Bound or Constraints": "境界や制約",
16
+ "Classes": "クラス",
15
17
  "Classes:": "クラス:",
16
18
  "Class Type Parameters:": "Class Type Parameters:",
17
19
  "CLASS TYPE PARAMETER": "CLASS TYPE PARAMETER",
18
- "CLASS": "CLASS",
19
- "CONSTRAINTS:": "CONSTRAINTS:",
20
+ "CLASS": "クラス",
21
+ "CONSTRAINTS:": "制約:",
20
22
  "DEFAULT:": "デフォルト:",
21
23
  "Default": "デフォルト",
22
24
  "default:": "デフォルト:",
23
25
  "DESCRIPTION": "デスクリプション",
24
26
  "Description": "デスクリプション",
25
27
  "Examples:": "例:",
28
+ "Functions": "関数",
26
29
  "Functions:": "関数:",
27
30
  "FUNCTION": "関数",
28
31
  "Init Type Parameters:": "Init Type Parameters:",
29
32
  "INIT TYPE PARAMETER": "INIT TYPE PARAMETER",
30
33
  "Methods:": "メソッド:",
31
34
  "METHOD": "メソッド",
35
+ "Modules": "モジュール",
32
36
  "Modules:": "モジュール:",
33
37
  "MODULE": "モジュール",
34
38
  "Name": "名前",
@@ -45,10 +49,11 @@
45
49
  "Source code in": "ソースコード位置:",
46
50
  "TYPE:": "タイプ:",
47
51
  "Type": "タイプ",
48
- "Type Aliases:": "Type Aliases:",
49
- "TYPE ALIAS": "TYPE ALIAS",
50
- "Type Parameters:": "Type Parameters:",
51
- "TYPE PARAMETER": "TYPE PARAMETER",
52
+ "Type Aliases": "型エイリアス",
53
+ "Type Aliases:": "型エイリアス:",
54
+ "TYPE ALIAS": "型エイリアス",
55
+ "Type Parameters:": "型パラメータ:",
56
+ "TYPE PARAMETER": "型パラメータ",
52
57
  "WARNS": "警告",
53
58
  "Warns:": "警告:",
54
59
  "YIELDS": "返す",