From 5bb0bb4be543fd5eca41673696a62ed80d493591 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 5 Jun 2024 18:20:58 +0200 Subject: Adding upstream version 7.3.7. Signed-off-by: Daniel Baumann --- .../ext_napoleon_pep526_data_numpy.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/test_extensions/ext_napoleon_pep526_data_numpy.py (limited to 'tests/test_extensions/ext_napoleon_pep526_data_numpy.py') diff --git a/tests/test_extensions/ext_napoleon_pep526_data_numpy.py b/tests/test_extensions/ext_napoleon_pep526_data_numpy.py new file mode 100644 index 0000000..eff7746 --- /dev/null +++ b/tests/test_extensions/ext_napoleon_pep526_data_numpy.py @@ -0,0 +1,21 @@ +"""Test module for napoleon PEP 526 compatibility with numpy style""" + +module_level_var: int = 99 +"""This is an example module level variable""" + + +class PEP526NumpyClass: + """ + Sample class with PEP 526 annotations and numpy docstring + + Attributes + ---------- + attr1: + Attr1 description + + attr2: + Attr2 description + """ + + attr1: int + attr2: str -- cgit v1.2.3