tests/test_ext_napoleon/pep526_data_google.py
raw| 1 | """Test module for napoleon PEP 526 compatibility with google style""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | module_level_var: int = 99 |
| 6 | """This is an example module level variable""" |
| 7 | |
| 8 | |
| 9 | class PEP526GoogleClass: |
| 10 | """Sample class with PEP 526 annotations and google docstring. |
| 11 | |
| 12 | Attributes: |
| 13 | attr1: Attr1 description. |
| 14 | attr2: Attr2 description. |
| 15 | """ |
| 16 | |
| 17 | attr1: int |
| 18 | attr2: str |