Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P727
(An Untitled Masterwork)
Active
Public
Actions
Authored by
vlorentz
on Jul 22 2020, 11:53 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
>>> 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)>
Event Timeline
vlorentz
created this paste.
Jul 22 2020, 11:53 AM
2020-07-22 11:53:00 (UTC+2)
Log In to Comment