summaryrefslogtreecommitdiff
path: root/tests/roots/test-ext-autodoc/target/autoclass_content.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/roots/test-ext-autodoc/target/autoclass_content.py')
-rw-r--r--tests/roots/test-ext-autodoc/target/autoclass_content.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/roots/test-ext-autodoc/target/autoclass_content.py b/tests/roots/test-ext-autodoc/target/autoclass_content.py
index 8924ab09b..52b98064a 100644
--- a/tests/roots/test-ext-autodoc/target/autoclass_content.py
+++ b/tests/roots/test-ext-autodoc/target/autoclass_content.py
@@ -33,3 +33,15 @@ class F:
def __new__(cls):
"""__new__ docstring"""
+
+
+class G(C):
+ """A class inherits __init__ without docstring."""
+ def __init__(self):
+ pass
+
+
+class H(E):
+ """A class inherits __new__ without docstring."""
+ def __init__(self):
+ pass