idiombench / Python /train /3.11 /protocol /modern_07.py
SwashBuckler001's picture
IdiomBench (part 4)
5501846 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