Debian Codegraph @

tests/roots/test-ext-autodoc/target/inherited_annotations.py

raw
1 """Test case for https://github.com/sphinx-doc/sphinx/issues/11387,
2 corner case involving inherited members with type annotations
3 on python 3.9 and earlier
4 """
5
6
7 class HasTypeAnnotatedMember:
8 inherit_me: int
9 """Inherited"""
10
11
12 class NoTypeAnnotation(HasTypeAnnotatedMember):
13 a = 1
14 """Local"""
15
16
17 class NoTypeAnnotation2(HasTypeAnnotatedMember):
18 a = 1
19 """Local"""