Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P626
error: Cannot assign to a method
Active
Public
Actions
Authored by
vlorentz
on Mar 24 2020, 5:02 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:
f: Callable
def __init__(self, f: Callable):
self.f = f # -> error: Cannot assign to a method
Event Timeline
vlorentz
created this paste.
Mar 24 2020, 5:02 PM
2020-03-24 17:02:22 (UTC+1)
vlorentz
edited the content of this paste.
(Show Details)
Log In to Comment