diff options
author | James Hilton-Balfe <gobot1234yt@gmail.com> | 2024-05-07 01:41:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 01:41:32 (GMT) |
commit | e7dafdc2240a8e4e45f53782c47120eb3fe37712 (patch) | |
tree | 6ff7070c1f48907643b1354b2726d4c268befa15 /Misc | |
parent | b4bdf83cc67434235d9630c92c84a5261992b235 (diff) | |
download | cpython-e7dafdc2240a8e4e45f53782c47120eb3fe37712.zip cpython-e7dafdc2240a8e4e45f53782c47120eb3fe37712.tar.gz cpython-e7dafdc2240a8e4e45f53782c47120eb3fe37712.tar.bz2 |
gh-110209: Add __class_getitem__ for generator and coroutine (#110212)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-10-02-10-35-58.gh-issue-110209.b5zfIz.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-10-02-10-35-58.gh-issue-110209.b5zfIz.rst b/Misc/NEWS.d/next/Library/2023-10-02-10-35-58.gh-issue-110209.b5zfIz.rst new file mode 100644 index 0000000..b88e80d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-10-02-10-35-58.gh-issue-110209.b5zfIz.rst @@ -0,0 +1 @@ +Add :meth:`~object.__class_getitem__` to :class:`types.GeneratorType` and :class:`types.CoroutineType` for type hinting purposes. Patch by James Hilton-Balfe. |