tests/roots/test-ext-autodoc/target/generic_class.py
raw| 1 | from __future__ import annotations |
| 2 | |
| 3 | from typing import Generic, TypeVar |
| 4 | |
| 5 | T = TypeVar('T') |
| 6 | |
| 7 | |
| 8 | # Test that typing.Generic's __new__ method does not mask our class' |
| 9 | # __init__ signature. |
| 10 | class A(Generic[T]): # NoQA: UP046 |
| 11 | """docstring for A""" |
| 12 | |
| 13 | def __init__(self, a, b=None): |
| 14 | pass |