2022-02-19 20:57:02 -06:00
|
|
|
"""Test module for napoleon PEP 526 compatibility with numpy style"""
|
2020-11-18 04:18:52 -06:00
|
|
|
|
2024-11-22 15:54:26 -06:00
|
|
|
from __future__ import annotations
|
|
|
|
|
2020-11-18 04:18:52 -06:00
|
|
|
module_level_var: int = 99
|
|
|
|
"""This is an example module level variable"""
|
|
|
|
|
|
|
|
|
|
|
|
class PEP526NumpyClass:
|
2025-01-14 09:55:02 -06:00
|
|
|
"""Sample class with PEP 526 annotations and numpy docstring
|
2020-11-18 04:18:52 -06:00
|
|
|
|
|
|
|
Attributes
|
|
|
|
----------
|
2020-11-20 05:31:52 -06:00
|
|
|
attr1:
|
2020-11-18 04:18:52 -06:00
|
|
|
Attr1 description
|
|
|
|
|
2020-11-20 05:31:52 -06:00
|
|
|
attr2:
|
2020-11-18 04:18:52 -06:00
|
|
|
Attr2 description
|
|
|
|
"""
|
2024-01-14 15:13:46 -06:00
|
|
|
|
2020-11-18 04:18:52 -06:00
|
|
|
attr1: int
|
|
|
|
attr2: str
|