ddjoh

Results 3 comments of ddjoh

A workaround is to call methods by class rather than instance e.g: ``` class Foo[T(Ord)](object): def __init__(self): pass def insert(self, v: T): pass actor main(env): f = Foo() #f.insert(1) Foo.insert(f,...

Placing `__eq__` under the `Hashable` extension seems to generate working code, e.g: ``` class Key: @property x: int def __init__(self, x): self.x = x extension Key(Hashable): def __eq__(a, b) ->...

But bar() can't return, only raise an exception that is unhandled by foo(), hence there is no path where foo() can return None, only an actual str, right?