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
{{ message }}
Repository navigation
mypy doesn't understand that *args: P.args implies that args is a tuple #19663
Ideally, all the reveal_types should show the same result (or raise errors if considered misuse of ParamSpec1), and the else-branch should trigger an unreachable warning.
Footnotes
For instance, pyright says as_tuple(*args) is illegal. Code sample in pyright playground↩
We shouldn't replicate pyright behavior here, it is not a type error but a weirdly phrased "not supported" message (discussion). That usage is perfectly fine and (IMO) should produce a tuple[object, ...].
Activity
sterliakov commentedon Aug 19, 2025
We shouldn't replicate pyright behavior here, it is not a type error but a weirdly phrased "not supported" message (discussion). That usage is perfectly fine and (IMO) should produce a
tuple[object, ...].