idiombench / Python /train /3.12 /protocol /modern_07.py
SwashBuckler001's picture
IdiomBench (part 5)
5999c55 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