We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fed2ec commit f624fdfCopy full SHA for f624fdf
test-data/unit/check-enum.test
@@ -331,3 +331,19 @@ y = B.E.a
331
x = y
332
[out]
333
main:8: error: Incompatible types in assignment (expression has type "__main__.B.E", variable has type "__main__.A.E")
334
+
335
+[case testFunctionalEnum_python2]
336
+from enum import Enum
337
+Eu = Enum(u'Eu', u'a b')
338
+Eb = Enum(b'Eb', b'a b')
339
+Gu = Enum(u'Gu', {u'a': 1})
340
+Gb = Enum(b'Gb', {b'a': 1})
341
+Hu = Enum(u'Hu', [u'a'])
342
+Hb = Enum(b'Hb', [b'a'])
343
+Eu.a
344
+Eb.a
345
+Gu.a
346
+Gb.a
347
+Hu.a
348
+Hb.a
349
+[out]
0 commit comments