Different behavior when switching arguments using same generic type? #7914
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
Disclaimer: Not sure if this is a bug or expected behavior but that was at least unexpected for me and I did not manage to find relevant information here or on the typing repository (or documentation).
Describe the bug
In the example below,
f1
andf2
are similar except for the order of arguments, inf1
, the callable is after the container, and the type of the callable is properly deduced, but inf2
, the callable comes first and its type is not properly deduced.Full error:
VS Code extension or command-line
CLI, pyright 1.1.362
The text was updated successfully, but these errors were encountered: