mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
28 lines
656 B
Python
28 lines
656 B
Python
from typing import Any
|
|
import typing
|
|
|
|
|
|
class Bad:
|
|
def __eq__(self, other: Any) -> bool: ... # PYI032
|
|
def __ne__(self, other: typing.Any) -> typing.Any: ... # PYI032
|
|
|
|
|
|
class Good:
|
|
def __eq__(self, other: object) -> bool: ...
|
|
|
|
def __ne__(self, obj: object) -> int: ...
|
|
|
|
|
|
class WeirdButFine:
|
|
def __eq__(self, other: Any, strange_extra_arg: list[str]) -> Any: ...
|
|
def __ne__(self, *, kw_only_other: Any) -> bool: ...
|
|
|
|
|
|
class Unannotated:
|
|
def __eq__(self) -> Any: ...
|
|
def __ne__(self) -> bool: ...
|
|
|
|
|
|
class BadStringized:
|
|
def __eq__(self, other: "Any") -> bool: ... # PYI032
|
|
def __ne__(self, other: "Any") -> bool: ... # PYI032
|