-
Notifications
You must be signed in to change notification settings - Fork 335
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
PyCharm indicates wrong type for lambda #928
Labels
bug
Unexpected behaviour and bugs
Comments
I've noticed this behavior too. I think this happens since one of the last releases of |
If you have free time then you can create a PR, of course. |
Sorry I didn't get time, I see you have started now :) |
lk-geimfari
added a commit
that referenced
this issue
Aug 29, 2020
* Fix #928 * Fix type for schema * Add setup.py to mypy ignore * Add alias SchemaType
lk-geimfari
added a commit
that referenced
this issue
Sep 7, 2020
* Fix #928 * Fix type for schema * Add setup.py to mypy ignore * Add alias SchemaType * Add thanks for JetBrains
lk-geimfari
added a commit
that referenced
this issue
Nov 14, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
What's wrong
While using PyCharm,
lambda
type inSchema
results in Expected type 'FunctionType', got '() -> Dict[str, Union[str, Any]]' insteadHow is that should be
Is this warning correct? The code runs perfectly fine but maybe the Type maybe be wrong here. On this SO post they mentioned using the
from typing import Callable
for type hinting a lambda.System information
PyCharm 2020.2.1
The text was updated successfully, but these errors were encountered: