@@ -504,6 +504,7 @@ reveal_type(close(arg)) # E: Revealed type is 'builtins.int*'
504504reveal_type(close_all([F()])) # E: Revealed type is 'builtins.int*'
505505reveal_type(close_all([arg])) # E: Revealed type is 'builtins.int*'
506506[builtins fixtures/isinstancelist.pyi]
507+ [typing fixtures/typing-full.pyi]
507508
508509[case testProtocolGenericInference2]
509510from typing import Generic, TypeVar, Protocol
@@ -767,6 +768,7 @@ t: Traversable
767768t = D[int]() # OK
768769t = C() # E: Incompatible types in assignment (expression has type "C", variable has type "Traversable")
769770[builtins fixtures/list.pyi]
771+ [typing fixtures/typing-full.pyi]
770772
771773[case testRecursiveProtocols2]
772774from typing import Protocol, TypeVar
@@ -822,6 +824,7 @@ t = A() # OK
822824t = B() # E: Incompatible types in assignment (expression has type "B", variable has type "P1")
823825t = C() # E: Incompatible types in assignment (expression has type "C", variable has type "P1")
824826[builtins fixtures/list.pyi]
827+ [typing fixtures/typing-full.pyi]
825828
826829[case testMutuallyRecursiveProtocolsTypesWithSubteMismatch]
827830from typing import Protocol, Sequence, List
@@ -1737,6 +1740,7 @@ bar((1, 2))
17371740bar(1) # E: Argument 1 to "bar" has incompatible type "int"; expected "Sized"
17381741
17391742[builtins fixtures/isinstancelist.pyi]
1743+ [typing fixtures/typing-full.pyi]
17401744
17411745[case testBasicSupportsIntProtocol]
17421746from typing import SupportsInt
@@ -1752,6 +1756,7 @@ foo(Bar())
17521756foo('no way') # E: Argument 1 to "foo" has incompatible type "str"; expected "SupportsInt"
17531757
17541758[builtins fixtures/isinstancelist.pyi]
1759+ [typing fixtures/typing-full.pyi]
17551760
17561761-- Additional tests and corner cases for protocols
17571762-- ----------------------------------------------
0 commit comments