Function cannot be assigned to Hashable type #1027
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
In Python, function is hashable. Given that
obj
is a function, the expressionisinstance(obj, collections.abc.Hashable)
evaluates toTrue
.Actual behaviour
Pylance reports that function cannot be assigned to type "Hashable".
Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: