Files
sphinx/tests/roots/test-ext-autodoc/target/inherited_annotations.py
2025-02-15 21:47:31 +00:00

20 lines
385 B
Python

"""Test case for https://github.com/sphinx-doc/sphinx/issues/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"""