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 @@ -1710,10 +1710,15 @@ Introspection helpers
1710
1710
.. class :: ForwardRef
1711
1711
1712
1712
A class used for internal typing representation of string forward references.
1713
- For example, ``list ["SomeClass"] `` is implicitly transformed into
1714
- ``list [ForwardRef("SomeClass")] ``. This class should not be instantiated by
1713
+ For example, ``List ["SomeClass"] `` is implicitly transformed into
1714
+ ``List [ForwardRef("SomeClass")] ``. This class should not be instantiated by
1715
1715
a user, but may be used by introspection tools.
1716
1716
1717
+ .. note ::
1718
+ :pep: `585 ` generic types such as ``list["SomeClass"] `` will not be
1719
+ implicitly transformed into ``list[ForwardRef("SomeClass")] `` and thus
1720
+ will not automatically resolve to ``list[SomeClass] ``.
1721
+
1717
1722
.. versionadded :: 3.7.4
1718
1723
1719
1724
Constant
You can’t perform that action at this time.
0 commit comments