You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose to change it to tuple[()] or Tuple[()] with optional fallback= in case of NamedTuple.
This can affect people who assert output (like pytest-mypy-plugins users), but I think that /s/Tuple[]/Tuple[()] is simple enough to fix all output based checks.
But, we will be more correct in terms of typing.
The text was updated successfully, but these errors were encountered:
Right now this code will produce:
and:
This does not look right, because
Tuple[]
is not a thing in Python:I propose to change it to
tuple[()]
orTuple[()]
with optionalfallback=
in case ofNamedTuple
.This can affect people who assert output (like
pytest-mypy-plugins
users), but I think that/s/Tuple[]/Tuple[()]
is simple enough to fix all output based checks.But, we will be more correct in terms of typing.
The text was updated successfully, but these errors were encountered: