Thanks to visit codestin.com Credit goes to github.com
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 a26215d commit c3b9592Copy full SHA for c3b9592
1 file changed
Doc/library/typing.rst
@@ -1706,6 +1706,9 @@ Introspection helpers
1706
For a typing object of the form ``X[Y, Z, ...]`` these functions return
1707
``X`` and ``(Y, Z, ...)``. If ``X`` is a generic alias for a builtin or
1708
:mod:`collections` class, it gets normalized to the original class.
1709
+ If ``X`` is a :class:`Union` contained in another generic type,
1710
+ the order of ``(Y, Z, ...)`` may be different from the order of
1711
+ the original arguments ``[Y, Z, ...]`` due to type caching.
1712
For unsupported objects return ``None`` and ``()`` correspondingly.
1713
Examples::
1714
0 commit comments