Skip to content

Commit 6e68941

Browse files
committed
Address review comments
1 parent 9e143b2 commit 6e68941

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test-data/unit/pythoneval.test

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,28 +1463,27 @@ _testNoCrashOnGenericUnionUnpacking.py:16: error: Revealed type is 'Union[builti
14631463
from enum import Enum
14641464
class E(Enum):
14651465
A = 'a'
1466-
l = [e for e in E]
1467-
reveal_type(l[0])
1466+
(reveal_type(e) for e in E)
14681467
for e in E:
14691468
reveal_type(e)
14701469
[out]
1471-
_testEnumIteration.py:5: error: Revealed type is '_testEnumIteration.E*'
1472-
_testEnumIteration.py:7: error: Revealed type is '_testEnumIteration.E*'
1470+
_testEnumIteration.py:4: error: Revealed type is '_testEnumIteration.E*'
1471+
_testEnumIteration.py:6: error: Revealed type is '_testEnumIteration.E*'
14731472

14741473
[case testEnumIterable]
14751474
from enum import Enum
14761475
from typing import Iterable
14771476
class E(Enum):
1478-
a = 'a'
1479-
def f(ie:Iterable[E]):
1477+
A = 'a'
1478+
def f(ie: Iterable[E]):
14801479
pass
14811480
f(E)
14821481

14831482
[case testIntEnumIterable]
14841483
from enum import IntEnum
14851484
from typing import Iterable
14861485
class N(IntEnum):
1487-
x = 1
1486+
X = 1
14881487
def f(ni: Iterable[N]):
14891488
pass
14901489
def g(ii: Iterable[int]):
@@ -1496,7 +1495,7 @@ g(N)
14961495
from enum import Enum
14971496
from typing import Iterable
14981497
class E(str, Enum):
1499-
a = 'foo'
1498+
A = 'foo'
15001499
def f(ei: Iterable[E]):
15011500
pass
15021501
def g(si: Iterable[str]):

0 commit comments

Comments
 (0)