mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
This test is currently failing because typing.Generic.__new__ clobbers the real signature.
13 lines
243 B
Python
13 lines
243 B
Python
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
|