[Python-checkins] [3.8] bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (#24494)
gvanrossum
webhook-mailer at python.org
Tue Feb 9 11:55:50 EST 2021
https://github.com/python/cpython/commit/c8a48c6d0417cc8f256a40142962825febdc2e20
commit: c8a48c6d0417cc8f256a40142962825febdc2e20
branch: 3.8
author: Ken Jin <28750310+Fidget-Spinner at users.noreply.github.com>
committer: gvanrossum <gvanrossum at gmail.com>
date: 2021-02-09T08:55:45-08:00
summary:
[3.8] bpo-41824: Add versionadded for typing.ForwardRef docs (#24224) (#24494)
files:
M Doc/library/typing.rst
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 8c179ff79d15f..046f5e0f2d9eb 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -1020,6 +1020,8 @@ The module defines the following classes, functions and decorators:
``List[ForwardRef("SomeClass")]``. This class should not be instantiated by
a user, but may be used by introspection tools.
+ .. versionadded:: 3.7.4
+
.. function:: NewType(name, tp)
A helper function to indicate a distinct type to a typechecker,
More information about the Python-checkins
mailing list