From 4cf20ff36a026c845349bea847a207a848fadd31 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 3 Nov 2024 07:46:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mypy/checkexpr.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index 38d5ad2f787c4..967571858d11c 100644 --- a/mypy/checkexpr.py +++ b/mypy/checkexpr.py @@ -1668,10 +1668,7 @@ def check_callable_call( # An Enum() call that failed SemanticAnalyzerPass2.check_enum_call(). return callee.ret_type, callee - if ( - callee.is_type_obj() - and callee.type_object().is_protocol - ): + if callee.is_type_obj() and callee.type_object().is_protocol: self.chk.fail( message_registry.CANNOT_INSTANTIATE_PROTOCOL.format(callee.type_object().name), context,