Closed dennisrall closed 9 months ago
Thanks for reporting this issue.
Though, it looks to me to be expected behavior.
Taking it back. I tend to think this is a bug of pyright, or due to some inherent restriction of Python's type system. On our side, not sure there's much we can do.
Thanks for the fast response and the great project.
What do you think about adding a hint that the return type should be omitted?
Thanks for the fast response and the great project.
What do you think about adding a hint that the return type should be omitted?
Sure, fine with me. Feel free to make a PR and I'll approve.
In your solution to the extreme concatenate problem you propose:
But if I add the return type of
Callable[Concatenate[Person, P], T]
to the transform function, the test in line 19 fails.Is there a better return type or do you recommend skipping it in general?