|
33 | 33 | # - docs: https://github.com/jorenham/optype/blob/master/README.md#just |
34 | 34 | # - code: https://github.com/jorenham/optype/blob/master/optype/_core/_just.py |
35 | 35 | @final |
36 | | -class JustInt(Protocol): |
37 | | - @property |
| 36 | +class JustInt(Protocol): # type: ignore[misc] |
| 37 | + @property # type: ignore[override] |
38 | 38 | def __class__(self, /) -> type[int]: ... |
39 | 39 | @__class__.setter |
40 | 40 | def __class__(self, value: type[int], /) -> None: ... # pyright: ignore[reportIncompatibleMethodOverride] |
41 | 41 |
|
42 | 42 |
|
43 | 43 | @final |
44 | | -class JustFloat(Protocol): |
45 | | - @property |
| 44 | +class JustFloat(Protocol): # type: ignore[misc] |
| 45 | + @property # type: ignore[override] |
46 | 46 | def __class__(self, /) -> type[float]: ... |
47 | 47 | @__class__.setter |
48 | 48 | def __class__(self, value: type[float], /) -> None: ... # pyright: ignore[reportIncompatibleMethodOverride] |
49 | 49 |
|
50 | 50 |
|
51 | 51 | @final |
52 | | -class JustComplex(Protocol): |
53 | | - @property |
| 52 | +class JustComplex(Protocol): # type: ignore[misc] |
| 53 | + @property # type: ignore[override] |
54 | 54 | def __class__(self, /) -> type[complex]: ... |
55 | 55 | @__class__.setter |
56 | 56 | def __class__(self, value: type[complex], /) -> None: ... # pyright: ignore[reportIncompatibleMethodOverride] |
57 | 57 |
|
58 | 58 |
|
59 | | -# |
60 | | - |
61 | | - |
62 | 59 | class NestedSequence(Protocol[_T_co]): |
63 | 60 | def __getitem__(self, key: int, /) -> _T_co | NestedSequence[_T_co]: ... |
64 | 61 | def __len__(self, /) -> int: ... |
|
0 commit comments