* bpo-39493: Fix definition of IO.closed in typing.py (GH-18265)
(cherry picked from commit
2e6569b6692298fcc9aae0df3eb3181adb2a5099)
Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
* Use @absractproperty
Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
Co-authored-by: Guido van Rossum <guido@python.org>
def close(self) -> None:
pass
- @abstractmethod
+ @abstractproperty
def closed(self) -> bool:
pass
--- /dev/null
+Mark ``typing.IO.closed`` as a property
\ No newline at end of file