From 82cacaec1b0f44f4bb3cb9c436c858c73a153e79 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Fri, 2 Oct 2026 17:31:34 +0200 Subject: [PATCH] Update mypy to 2.4.0 (#184025) --- homeassistant/util/logging.py | 2 +- requirements_test.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/util/logging.py b/homeassistant/util/logging.py index c7ccea478985..bd6e34062856 100644 --- a/homeassistant/util/logging.py +++ b/homeassistant/util/logging.py @@ -269,7 +269,7 @@ def async_create_catching_coro[_T]( return catch_log_coro_exception( target, lambda: ( - f"Exception in {target.__name__} called from\n" + f"Exception in {target.__name__} called from\n" # type: ignore[attr-defined] + "".join(traceback.format_list(trace[:-1])) ), ) diff --git a/requirements_test.txt b/requirements_test.txt index e6c0e26371ed..ae4260fbe674 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -8,15 +8,15 @@ -c homeassistant/package_constraints.txt -r requirements_test_pre_commit.txt # ast-serialize is an internal mypy dependency -ast-serialize==0.6.0 +ast-serialize==0.11.2 astroid==4.0.4 coverage==7.16.2 freezegun==1.5.5 # librt is an internal mypy dependency -librt==0.13.0 +librt==0.16.0 license-expression==30.4.4 mock-open==1.4.0 -mypy==2.3.1 +mypy==2.4.0 prek==0.5.4 pydantic==2.13.5 PyGithub==2.10.0