idiombench / Python /train /3.9 /protocol /modern_07.py
SwashBuckler001's picture
IdiomBench (part 11)
e54eaab verified
Raw History Blame Contribute Delete
164 Bytes
from typing import Sized
class SupportsClose(Protocol):
def close(self) -> None:
...
class SizedAndClosable(Sized, SupportsClose, Protocol):
pass