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