Commit 65ed58bd authored by Tom Niget's avatar Tom Niget

Remove TODO for interface support since they are now supported

parent 5acab5be
...@@ -15,8 +15,6 @@ U = TypeVar("U") ...@@ -15,8 +15,6 @@ U = TypeVar("U")
V = TypeVar("V") 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): class HasLen(Protocol):
def __len__(self) -> int: ... def __len__(self) -> int: ...
...@@ -39,6 +37,8 @@ class str: ...@@ -39,6 +37,8 @@ class str:
def __add__(self, other: Self) -> Self: ... def __add__(self, other: Self) -> Self: ...
def __mul__(self, other: int) -> Self: ... def __mul__(self, other: int) -> Self: ...
assert len("a")
class bytes: class bytes:
def decode(self, encoding: str) -> str: ... def decode(self, encoding: str) -> str: ...
def __len__(self) -> int: ... 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