Skip to content

Commit 0172300

Browse files
committed
JustInt mypy ignores
1 parent 0a571bc commit 0172300

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

Diff for: array_api_compat/common/_typing.py

+6-9
Original file line numberDiff line numberDiff line change
@@ -33,32 +33,29 @@
3333
# - docs: https://github.com/jorenham/optype/blob/master/README.md#just
3434
# - code: https://github.com/jorenham/optype/blob/master/optype/_core/_just.py
3535
@final
36-
class JustInt(Protocol):
37-
@property
36+
class JustInt(Protocol): # type: ignore[misc]
37+
@property # type: ignore[override]
3838
def __class__(self, /) -> type[int]: ...
3939
@__class__.setter
4040
def __class__(self, value: type[int], /) -> None: ... # pyright: ignore[reportIncompatibleMethodOverride]
4141

4242

4343
@final
44-
class JustFloat(Protocol):
45-
@property
44+
class JustFloat(Protocol): # type: ignore[misc]
45+
@property # type: ignore[override]
4646
def __class__(self, /) -> type[float]: ...
4747
@__class__.setter
4848
def __class__(self, value: type[float], /) -> None: ... # pyright: ignore[reportIncompatibleMethodOverride]
4949

5050

5151
@final
52-
class JustComplex(Protocol):
53-
@property
52+
class JustComplex(Protocol): # type: ignore[misc]
53+
@property # type: ignore[override]
5454
def __class__(self, /) -> type[complex]: ...
5555
@__class__.setter
5656
def __class__(self, value: type[complex], /) -> None: ... # pyright: ignore[reportIncompatibleMethodOverride]
5757

5858

59-
#
60-
61-
6259
class NestedSequence(Protocol[_T_co]):
6360
def __getitem__(self, key: int, /) -> _T_co | NestedSequence[_T_co]: ...
6461
def __len__(self, /) -> int: ...

0 commit comments

Comments
 (0)