Update mypy dev 1.11.0a8 (#120032)

This commit is contained in:
Marc Mueller
2024-06-21 13:15:18 +02:00
committed by GitHub
parent 01d4629a2b
commit f0452e9ba0
7 changed files with 9 additions and 8 deletions

View File

@@ -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 (