File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1948,10 +1948,15 @@ Introspection helpers
1948
1948
.. class :: ForwardRef
1949
1949
1950
1950
A class used for internal typing representation of string forward references.
1951
- For example, ``list ["SomeClass"] `` is implicitly transformed into
1952
- ``list [ForwardRef("SomeClass")] ``. This class should not be instantiated by
1951
+ For example, ``List ["SomeClass"] `` is implicitly transformed into
1952
+ ``List [ForwardRef("SomeClass")] ``. This class should not be instantiated by
1953
1953
a user, but may be used by introspection tools.
1954
1954
1955
+ .. note ::
1956
+ :pep: `585 ` generic types such as ``list["SomeClass"] `` will not be
1957
+ implicitly transformed into ``list[ForwardRef("SomeClass")] `` and thus
1958
+ will not automatically resolve to ``list[SomeClass] ``.
1959
+
1955
1960
.. versionadded :: 3.7.4
1956
1961
1957
1962
Constant
You can’t perform that action at this time.
0 commit comments