sphinx/tests/roots/test-ext-autodoc/target/generic_class.py

13 lines
243 B
Python
Raw Normal View History

from typing import TypeVar, Generic
T = TypeVar('T')
# Test that typing.Generic's __new__ method does not mask our class'
# __init__ signature.
class A(Generic[T]):
"""docstring for A"""
def __init__(self, a, b=None):
pass