From 46527644f5ad95de7ef7d86d10f013a609b12e48 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Sat, 26 Oct 2024 14:18:10 -0700 Subject: [PATCH] remove spurious int error --- test-data/unit/check-enum.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-data/unit/check-enum.test b/test-data/unit/check-enum.test index 41bd708db0e8..520be0261672 100644 --- a/test-data/unit/check-enum.test +++ b/test-data/unit/check-enum.test @@ -2216,10 +2216,9 @@ from typing import Any, Callable, Dict class Foo(Enum): Bar: Foo = Callable[[str], None] # E: Enum members must be left unannotated \ # N: See https://typing.readthedocs.io/en/latest/spec/enums.html#defining-members \ - # E: Value of type "int" is not indexable + # E: Incompatible types in assignment (expression has type "", variable has type "Foo") Baz: Any = Callable[[Dict[str, "Missing"]], None] # E: Enum members must be left unannotated \ # N: See https://typing.readthedocs.io/en/latest/spec/enums.html#defining-members \ - # E: Value of type "int" is not indexable \ # E: Type application targets a non-generic function or class \ # E: Name "Missing" is not defined @@ -2228,3 +2227,4 @@ reveal_type(Foo.Bar.value) # N: Revealed type is "__main__.Foo" reveal_type(Foo.Baz) # N: Revealed type is "Literal[__main__.Foo.Baz]?" reveal_type(Foo.Baz.value) # N: Revealed type is "Any" [builtins fixtures/tuple.pyi] +[typing fixtures/typing-full.pyi]