-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Update enum for Python 3.6 #854
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
Comments
JelleZijlstra
added a commit
to JelleZijlstra/typeshed
that referenced
this issue
Apr 22, 2017
Fixes python#854 (unless there's more I'm missing).
ambv
pushed a commit
that referenced
this issue
Apr 24, 2017
Fixes #854 (unless there's more I'm missing).
I still get this with mypy 0.521 and Python 3.6.2: import enum
class NetworkEventName(str, enum.Enum):
CONNECTED = "connected"
DISCONNECTED = "disconnected"
CLOSE_REQUEST = "close_request"
MESSAGE = "message"
RAW_LINE = "raw_line"
print(NetworkEventName.__members__)
|
Can someone please file a separate issue for that?
|
Also may be it's easy to fix with a PR to typeshed?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bunch of changes to the enum module in Python 3.6. The type hints are also missing things that pre-date 3.6 like
__members__
. (The ability to iterate is covered by python/mypy/issues/2305.)The text was updated successfully, but these errors were encountered: