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
enum.Enum(...) accepts keyword arguments such as module, but mypy complains about them.
enum.Enum(...)
module
Example from #2306 (comment):
from enum import Enum # Error: Too many arguments for Enum() PictureSize = Enum('PictureSize', 'P0 P1 P2 P3 P4 P5 P6 P7 P8', type=str, module=__name__)
Documentation: https://docs.python.org/3/library/enum.html#functional-api
The text was updated successfully, but these errors were encountered:
I made an attempt to fix this in typeshed, please review when you have time, thanks
Sorry, something went wrong.
Related namedtuple issues: #2127 #2124
Has been fixed!
No branches or pull requests
enum.Enum(...)
accepts keyword arguments such asmodule
, but mypy complains about them.Example from #2306 (comment):
Documentation: https://docs.python.org/3/library/enum.html#functional-api
The text was updated successfully, but these errors were encountered: