8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2837241 commit 2369759Copy full SHA for 2369759
Doc/library/typing.rst
@@ -1687,6 +1687,9 @@ Introspection helpers
1687
For a typing object of the form ``X[Y, Z, ...]`` these functions return
1688
``X`` and ``(Y, Z, ...)``. If ``X`` is a generic alias for a builtin or
1689
:mod:`collections` class, it gets normalized to the original class.
1690
+ If ``X`` is a :class:`Union` contained in another generic type,
1691
+ the order of ``(Y, Z, ...)`` may be different from the order of
1692
+ the original arguments ``[Y, Z, ...]`` due to type caching.
1693
For unsupported objects return ``None`` and ``()`` correspondingly.
1694
Examples::
1695
0 commit comments