tests/test_ext_napoleon/pep526_data_numpy.py
raw| 1 | """Test module for napoleon PEP 526 compatibility with numpy 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 PEP526NumpyClass: |
| 10 | """Sample class with PEP 526 annotations and numpy docstring |
| 11 | |
| 12 | Attributes |
| 13 | ---------- |
| 14 | attr1: |
| 15 | Attr1 description |
| 16 | |
| 17 | attr2: |
| 18 | Attr2 description |
| 19 | """ |
| 20 | |
| 21 | attr1: int |
| 22 | attr2: str |