File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ def __dir__() -> list[str]:
234234# we can't use `CanIndex` here, because of a recent regression in pyright 1.1.392
235235_IndexT_contra = TypeVar (
236236 "_IndexT_contra" ,
237- bound = SupportsIndex | slice , # pyrefly: ignore[invalid-annotation]
237+ bound = SupportsIndex | slice ,
238238 contravariant = True ,
239239)
240240
Original file line number Diff line number Diff line change @@ -309,9 +309,7 @@ def test_is_union_type(origin: type) -> None:
309309 Alias : TypeAliasType = TypeAliasType ("Alias" , origin | None ) # noqa: N806 # pyright: ignore[reportGeneralTypeIssues]
310310 assert op .inspect .is_union_type (Alias )
311311
312- # pyrefly: ignore[not-a-type]
313312 assert op .inspect .is_union_type (tp .Annotated [origin | None , None ])
314- # pyrefly: ignore[not-a-type]
315313 assert op .inspect .is_union_type (tp .Annotated [origin , None ] | None )
316314
317315 assert not op .inspect .is_union_type (origin )
You can’t perform that action at this time.
0 commit comments