Discrepancy in the output of typing.get_args
for empty tuple type annotation (typing.Tuple[()]
/tuple[()]
) between Python3.10 & Python3.11
#100820
Labels
Bug report
For
Python3.8
-Python3.10
we haveFor
Python3.11
behavior changedwhich is a problem since it returns the same output for different cases: when there's no info about
tuple
elements and when there's no elements in atuple
.Your environment
python:3.10.9
(sha256:b4b8149f2ff93c993d9b752dd4298493975e341a6b542a33cdfb86ce52555f36
) &python:3.11.1
(sha256:a46b962871434568d186ef17ae7038055e17c670833ca5320fc107435fa146d7
) images.The text was updated successfully, but these errors were encountered: