sphinx/tests/roots/test-ext-autodoc/target/inherited_annotations.py
2025-01-03 01:33:14 +00:00

20 lines
342 B
Python

"""
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"""