@@ -51,8 +51,8 @@ def test_can_add_same_int() -> None:
5151 r1 : op .CanAddSame [object ] = x # type: ignore[assignment] # pyright: ignore[reportAssignmentType]
5252
5353 # https://github.com/facebook/pyrefly/issues/1783
54- assert isinstance (x , op .CanAddSame ) # pyrefly:ignore[invalid-argument]
55- assert issubclass (int , op .CanAddSame ) # pyrefly:ignore[invalid-argument]
54+ assert isinstance (x , op .CanAddSame )
55+ assert issubclass (int , op .CanAddSame )
5656
5757
5858def test_iadd () -> None :
@@ -189,8 +189,8 @@ def test_can_iadd_same_list_accept() -> None:
189189 a3 : op .CanIAddSame [bytes ] = x
190190
191191 # https://github.com/facebook/pyrefly/issues/1783
192- assert isinstance (x , op .CanIAddSame ) # pyrefly:ignore[invalid-argument]
193- assert issubclass (list , op .CanIAddSame ) # pyrefly:ignore[invalid-argument]
192+ assert isinstance (x , op .CanIAddSame )
193+ assert issubclass (list , op .CanIAddSame )
194194
195195
196196def test_can_iadd_same_list_reject () -> None :
@@ -230,8 +230,7 @@ def test_can_iter_collection_str(
230230 value : (str | tuple [str , ...] | list [str ] | set [str ] | dict [str , object ]),
231231) -> None :
232232 # (in)sanity checks
233- # https://github.com/facebook/pyrefly/issues/1784
234- assert isinstance (value , Collection ) # pyrefly:ignore[invalid-argument]
233+ assert isinstance (value , Collection ) # pyrefly: ignore[unsafe-overlap]
235234 assert not isinstance (value , Iterator )
236235
237236 value_iter_next : op .CanIter [op .CanNext [str ]] = value
@@ -247,7 +246,7 @@ def test_can_iter_collection_str(
247246
248247 assert isinstance (value , op .CanIter )
249248 assert not isinstance (value , op .CanNext )
250- assert not isinstance (value , op .CanIterSelf )
249+ assert not isinstance (value , op .CanIterSelf ) # pyrefly: ignore[unsafe-overlap]
251250
252251 ivalue = iter (value )
253252 ivalue_iter_next : op .CanIter [op .CanNext [str ]] = ivalue
@@ -274,9 +273,10 @@ def test_unsliceable_sequence() -> None:
274273 seq_int_str : op .CanSequence [int , str ] = UnsliceableSequence ()
275274 seq_wrong_str : op .CanSequence [slice , str ] = UnsliceableSequence () # type: ignore[assignment] # pyright: ignore[reportAssignmentType]
276275
277- # https://github.com/facebook/pyrefly/issues/1783
278- # pyrefly:ignore[invalid-argument]
279- assert isinstance (UnsliceableSequence , op .CanSequence )
276+ assert isinstance (
277+ UnsliceableSequence ,
278+ op .CanSequence , # pyrefly: ignore[unsafe-overlap]
279+ )
280280
281281
282282@pytest .mark .parametrize (
0 commit comments