Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
On a related note, is this the correct way to annotate __exit__? Exc = TypeVar('Exc', bound=Exception) def __exit__(self, exctype: Optional[Type[Exc]], excinst: Optional[Exc], exctb: Any) -> None: ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46669> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com