Skip to content

Commit 4652764

Browse files
committed
remove spurious int error
1 parent 2afee12 commit 4652764

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-data/unit/check-enum.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,10 +2216,9 @@ from typing import Any, Callable, Dict
22162216
class Foo(Enum):
22172217
Bar: Foo = Callable[[str], None] # E: Enum members must be left unannotated \
22182218
# N: See https://typing.readthedocs.io/en/latest/spec/enums.html#defining-members \
2219-
# E: Value of type "int" is not indexable
2219+
# E: Incompatible types in assignment (expression has type "<typing special form>", variable has type "Foo")
22202220
Baz: Any = Callable[[Dict[str, "Missing"]], None] # E: Enum members must be left unannotated \
22212221
# N: See https://typing.readthedocs.io/en/latest/spec/enums.html#defining-members \
2222-
# E: Value of type "int" is not indexable \
22232222
# E: Type application targets a non-generic function or class \
22242223
# E: Name "Missing" is not defined
22252224

@@ -2228,3 +2227,4 @@ reveal_type(Foo.Bar.value) # N: Revealed type is "__main__.Foo"
22282227
reveal_type(Foo.Baz) # N: Revealed type is "Literal[__main__.Foo.Baz]?"
22292228
reveal_type(Foo.Baz.value) # N: Revealed type is "Any"
22302229
[builtins fixtures/tuple.pyi]
2230+
[typing fixtures/typing-full.pyi]

0 commit comments

Comments
 (0)