summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-ext-autodoc/target/inherited_annotations.py
blob: 3ae58a852e4a729e3550c98306e5f296d6d3d0b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""
    Test case for #11387 corner case involving inherited
    members with type annotations on python 3.9 and earlier
"""

class HasTypeAnnotatedMember:
    inherit_me: int
    """Inherited"""

class NoTypeAnnotation(HasTypeAnnotatedMember):
    a = 1
    """Local"""

class NoTypeAnnotation2(HasTypeAnnotatedMember):
    a = 1
    """Local"""