We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible that when a function don't have any return statement, mypy can infer that the return type is None?
None
Both Pycharm and Typescript has this feature.
The text was updated successfully, but these errors were encountered:
No, mypy's position is that the body must conform to the signature, not the other way around.
This would be a good feature for stubgen though.
Sorry, something went wrong.
stubgen: infer None return type for functions without return statement (
6fce774
#4467) Fixes #4181.
No branches or pull requests
Is it possible that when a function don't have any return statement, mypy can infer that the return type is
None
?Both Pycharm and Typescript has this feature.
The text was updated successfully, but these errors were encountered: