Page MenuHomeSoftware Heritage
Paste P626

error: Cannot assign to a method
ActivePublic

Authored by vlorentz on Mar 24 2020, 5:02 PM.
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 edited the content of this paste. (Show Details)