blob: 1ec80584db387e2e3b67e07b726283943281a3a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from __future__ import annotations
from typing import Generic, TypeVar
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
|