]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
typing: Modernize type annotations on IO classes (#133487)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Tue, 6 May 2025 05:32:38 +0000 (22:32 -0700)
committerGitHub <noreply@github.com>
Tue, 6 May 2025 05:32:38 +0000 (05:32 +0000)
commit6a8f6eddd3810909c6763b74dfded3709e84da45
tree7ed362105cc6716bbfce1c0e4a16126e7a15092c
parent982830ce564f1ed439c516533bbfeb03d655f6df
typing: Modernize type annotations on IO classes (#133487)

Remove unnecessary strings, use of Union[], use of List[], and reliance
on implicit Optional.

These type annotations are not actually used for anything but I feel
we should set a good example.
Lib/typing.py