We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f624fdf commit ad0ba2aCopy full SHA for ad0ba2a
test-data/unit/check-enum.test
@@ -347,3 +347,23 @@ Gb.a
347
Hu.a
348
Hb.a
349
[out]
350
+
351
+[case testEnumIncremental]
352
+import m
353
+reveal_type(m.E.a)
354
+reveal_type(m.F.b)
355
+[file m.py]
356
+from enum import Enum
357
+class E(Enum):
358
+ a = 1
359
+ b = 2
360
+F = Enum('F', 'a b')
361
+[rechecked]
362
+[stale]
363
+[out1]
364
+main:2: error: Revealed type is 'm.E'
365
+main:3: error: Revealed type is 'm.F'
366
+[out2]
367
368
369
0 commit comments