Skip to content

Commit c5fef9c

Browse files
committed
remove now-resolved # pyrefly: ignore comments
1 parent 3491a0e commit c5fef9c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

optype/_core/_can.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/test_inspect.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)