mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Update mypy dev 1.11.0a8 (#120032)
This commit is contained in:
@@ -899,7 +899,7 @@ class MQTT:
|
||||
"""Return a string with the exception message."""
|
||||
# if msg_callback is a partial we return the name of the first argument
|
||||
if isinstance(msg_callback, partial):
|
||||
call_back_name = getattr(msg_callback.args[0], "__name__") # type: ignore[unreachable]
|
||||
call_back_name = getattr(msg_callback.args[0], "__name__")
|
||||
else:
|
||||
call_back_name = getattr(msg_callback, "__name__")
|
||||
return (
|
||||
|
Reference in New Issue
Block a user