Commit 2e7ccf45 authored by Tom Niget's avatar Tom Niget

Remove TODO for interface support since they are now supported

parent c1f0f935
......@@ -15,8 +15,6 @@ U = TypeVar("U")
V = TypeVar("V")
# TODO: really, these should work as interfaces, on a duck-typing basis. it's gonna be a hell of a ride to implement
# unification for this
class HasLen(Protocol):
def __len__(self) -> int: ...
......@@ -39,6 +37,8 @@ class str:
def __add__(self, other: Self) -> Self: ...
def __mul__(self, other: int) -> Self: ...
assert len("a")
class bytes:
def decode(self, encoding: str) -> str: ...
def __len__(self) -> int: ...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment