File: ext_napoleon_pep526_data_google.py

package info (click to toggle)
sphinx 8.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 26,712 kB
  • sloc: python: 105,846; javascript: 6,474; perl: 451; makefile: 178; sh: 37; xml: 19; ansic: 2
file content (18 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Test module for napoleon PEP 526 compatibility with google style"""

from __future__ import annotations

module_level_var: int = 99
"""This is an example module level variable"""


class PEP526GoogleClass:
    """Sample class with PEP 526 annotations and google docstring.

    Attributes:
        attr1: Attr1 description.
        attr2: Attr2 description.
    """

    attr1: int
    attr2: str