Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyright hangs when passing a lambda returning a tuple into a function #9536

Open
LeeeeT opened this issue Dec 2, 2024 · 0 comments
Open
Labels
addressed in next version Issue is fixed and will appear in next published version bug Something isn't working

Comments

@LeeeeT
Copy link

LeeeeT commented Dec 2, 2024

Pyright hangs on the following code:

from collections.abc import Callable

def f[T](c: Callable[[T], T]): ...

f(lambda v: (v, v))
@LeeeeT LeeeeT added the bug Something isn't working label Dec 2, 2024
erictraut added a commit that referenced this issue Dec 7, 2024
…rgument expression in certain circumstances. This addresses #9558 and #9536.
erictraut added a commit that referenced this issue Dec 7, 2024
…rgument expression in certain circumstances. This addresses #9558 and #9536. (#9560)
@erictraut erictraut added the addressed in next version Issue is fixed and will appear in next published version label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addressed in next version Issue is fixed and will appear in next published version bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants