Page MenuHomeSoftware Heritage
Paste P727

(An Untitled Masterwork)
ActivePublic

Authored by vlorentz on Jul 22 2020, 11:53 AM.
>>> import inspect
>>> class Foo:
... def __init__(self, bar):
... pass
...
>>> inspect.signature(Foo)
<Signature (bar)>
>>> class T(typing.Generic[typing.TypeVar("T2")]):
... pass
...
>>> class Foo(T[str]):
... def __init__(self, bar):
... pass
...
>>> inspect.signature(Foo)
<Signature (*args, **kwds)>