mkdocstrings-python 1.14.4__py3-none-any.whl → 1.14.5__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/rendering.py +10 -1
- {mkdocstrings_python-1.14.4.dist-info → mkdocstrings_python-1.14.5.dist-info}/METADATA +1 -1
- {mkdocstrings_python-1.14.4.dist-info → mkdocstrings_python-1.14.5.dist-info}/RECORD +6 -6
- {mkdocstrings_python-1.14.4.dist-info → mkdocstrings_python-1.14.5.dist-info}/WHEEL +0 -0
- {mkdocstrings_python-1.14.4.dist-info → mkdocstrings_python-1.14.5.dist-info}/entry_points.txt +0 -0
- {mkdocstrings_python-1.14.4.dist-info → mkdocstrings_python-1.14.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -539,11 +539,20 @@ def do_as_attributes_section(
|
|
|
539
539
|
Returns:
|
|
540
540
|
An attributes docstring section.
|
|
541
541
|
"""
|
|
542
|
+
|
|
543
|
+
def _parse_docstring_summary(attribute: Attribute) -> str:
|
|
544
|
+
if attribute.docstring is None:
|
|
545
|
+
return ""
|
|
546
|
+
line = attribute.docstring.value.split("\n", 1)[0]
|
|
547
|
+
if ":" in line and attribute.docstring.parser_options.get("returns_type_in_property_summary", False):
|
|
548
|
+
_, line = line.split(":", 1)
|
|
549
|
+
return line
|
|
550
|
+
|
|
542
551
|
return DocstringSectionAttributes(
|
|
543
552
|
[
|
|
544
553
|
DocstringAttribute(
|
|
545
554
|
name=attribute.name,
|
|
546
|
-
description=attribute
|
|
555
|
+
description=_parse_docstring_summary(attribute),
|
|
547
556
|
annotation=attribute.annotation,
|
|
548
557
|
value=attribute.value, # type: ignore[arg-type]
|
|
549
558
|
)
|
|
@@ -152,7 +152,7 @@ mkdocstrings_handlers/python/config.py,sha256=dZTBl2BbEyVc_o8PW0rReWHDzdqYstOP7f
|
|
|
152
152
|
mkdocstrings_handlers/python/debug.py,sha256=4vqIbCbbz_vcjcFk6jPoF8E1kLig8AQEsQ93ybcjIVc,2894
|
|
153
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
|
-
mkdocstrings_handlers/python/rendering.py,sha256=
|
|
155
|
+
mkdocstrings_handlers/python/rendering.py,sha256=rxK3GMaw_kyx8xA2b_LM9H54j746eAz6gbGf7RnGW-A,21946
|
|
156
156
|
mkdocstrings_handlers/python/templates/material/_base/attribute.html,sha256=nn0671f4bE7VqnTs-VQL3SGPACWAxb2uJBRcP2nwYng,427
|
|
157
157
|
mkdocstrings_handlers/python/templates/material/_base/attribute.html.jinja,sha256=sbbkQtl5bPm5mmmZ-VCyLtfsOuhSr-FrD2FUSlbK-Zs,4451
|
|
158
158
|
mkdocstrings_handlers/python/templates/material/_base/children.html,sha256=mOafkSlphFQJLWfrYrIMFVRGi2yjdtN6iJh8bPt7uRI,424
|
|
@@ -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.5.dist-info/METADATA,sha256=A332XSZsOMUOrJBoaw_SRbtY262ragu8wuuH_JYYFXk,5570
|
|
331
|
+
mkdocstrings_python-1.14.5.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
|
332
|
+
mkdocstrings_python-1.14.5.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
333
|
+
mkdocstrings_python-1.14.5.dist-info/licenses/LICENSE,sha256=JGb4pdPEM8TTjjhr-uNCO7oXkiVrwG5Pz0JamcjNF_s,754
|
|
334
|
+
mkdocstrings_python-1.14.5.dist-info/RECORD,,
|
|
File without changes
|
{mkdocstrings_python-1.14.4.dist-info → mkdocstrings_python-1.14.5.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{mkdocstrings_python-1.14.4.dist-info → mkdocstrings_python-1.14.5.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|