Add type ignore error codes [core] (#66773)

This commit is contained in:
Marc Mueller 2022-02-18 08:09:22 +01:00 committed by GitHub
parent 58551ec66d
commit 8d2fb72cc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 18 additions and 18 deletions

View file

@ -238,8 +238,8 @@ class HomeAssistant:
"""Root object of the Home Assistant home automation."""
auth: AuthManager
http: HomeAssistantHTTP = None # type: ignore
config_entries: ConfigEntries = None # type: ignore
http: HomeAssistantHTTP = None # type: ignore[assignment]
config_entries: ConfigEntries = None # type: ignore[assignment]
def __init__(self) -> None:
"""Initialize new Home Assistant object."""
@ -765,7 +765,7 @@ class Event:
def __eq__(self, other: Any) -> bool:
"""Return the comparison."""
return ( # type: ignore
return ( # type: ignore[no-any-return]
self.__class__ == other.__class__
and self.event_type == other.event_type
and self.data == other.data
@ -1125,7 +1125,7 @@ class State:
def __eq__(self, other: Any) -> bool:
"""Return the comparison of the state."""
return ( # type: ignore
return ( # type: ignore[no-any-return]
self.__class__ == other.__class__
and self.entity_id == other.entity_id
and self.state == other.state