We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63ae048 commit 7fed2ecCopy full SHA for 7fed2ec
test-data/unit/check-enum.test
@@ -275,6 +275,8 @@ S = Enum('S', {1: 1})
275
T = Enum('T', keyword='a b')
276
U = Enum('U', *['a'])
277
V = Enum('U', **{'a': 1})
278
+W = Enum('W', 'a b')
279
+W.c
280
[out]
281
main:2: error: Too few arguments for Enum()
282
main:3: error: Enum() expects a string, tuple, list or dict literal as the second argument
@@ -295,6 +297,7 @@ main:17: error: Enum() with dict literal requires string literals
295
297
main:18: error: Unexpected arguments to Enum()
296
298
main:19: error: Unexpected arguments to Enum()
299
main:20: error: Unexpected arguments to Enum()
300
+main:22: error: "W" has no attribute "c"
301
302
[case testFunctionalEnumFlag]
303
from enum import Flag, IntFlag
0 commit comments