Replies: 2 comments 6 replies
-
Moving to discussion since this isn't a bug report. |
Beta Was this translation helpful? Give feedback.
6 replies
-
Guess this is because May it be possible to write type hints indicating that a function returns tuple consisting of the types matching argument types? Something like this: def fn(*args: ???) -> ???:
return tuple(*args)
reveal_type(fn(1, 'a')) # tuple[int, str] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consider following code
Innermost
return f(...)
reports error. Sinceopaque
returns the same type it was passed, I expected pyright to be happy with this code. What am I doing incorrectly here?Beta Was this translation helpful? Give feedback.
All reactions