-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
list
doesn't seem to be a valid callable
#9253
Comments
I’m sure this is well known and probably a duplicate. You can help by searching the tracker for an issue that describes this. |
couldn't find another issue quite like this, but i tried other callable builtin classes
seems to be problem with generics? no generic classes work and all non-generics work |
Hm, that's interesting. Seems only the generic classes have this error. Maybe that's a clue for someone. |
It could be the "known very old bug that generic functions when passed as arguments to another generic functions don't work". It seems that nobody can find that from the issue tracker, but some people know about it. #9265 (comment) |
#1507 is a similar issue, though maybe we can keep this open as well, since the fix for type objects might be different and the error message looks different. |
I have a similar issue when I try having this error |
@tiagocabo That is not a bug:
or (with Python 3.10+ or
Alternatively, you can convert the iterator to a list with |
don't know if this is bug or feature request
this works, but feels like a workaround:
python 3.7, mypy from latest master (20b4628), no flags
The text was updated successfully, but these errors were encountered: