1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-27 14:31:13 +00:00

Add first batch of Ruff PYI rules (#115100)

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
This commit is contained in:
Sid
2024-04-07 23:30:50 +02:00
committed by GitHub
parent 569f54d8e3
commit 8e98ba7312
27 changed files with 44 additions and 55 deletions

View File

@@ -1527,12 +1527,12 @@ class _HA_ANY:
_other = _SENTINEL
def __eq__(self, other: Any) -> bool:
def __eq__(self, other: object) -> bool:
"""Test equal."""
self._other = other
return True
def __ne__(self, other: Any) -> bool:
def __ne__(self, other: object) -> bool:
"""Test not equal."""
self._other = other
return False