Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P628
(An Untitled Masterwork)
Active
Public
Actions
Authored by
vlorentz
on Mar 24 2020, 5:15 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
from typing import Callable
class Foo:
def __init__(self, f: Callable[[int], None]):
self.f: Callable[[int], None] = f
def call(self, n: int):
self.f(n)
Event Timeline
vlorentz
created this paste.
Mar 24 2020, 5:15 PM
2020-03-24 17:15:12 (UTC+1)
Log In to Comment