79780292

Date: 2025-10-01 16:47:46
Score: 3
Natty:
Report link

Adding a docstring below the variable definition (even an empty one, i.e. """""") means it gets picked up and cross-referenced by mkdocs/mkdocstrings.

Credit to pawamoy on GitHub: https://github.com/mkdocstrings/mkdocstrings/discussions/801#discussioncomment-14564914

Screenshot of type hints being shown as a module attribute

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user1276048