Skip to content

Commit 4cf20ff

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 719f89e commit 4cf20ff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mypy/checkexpr.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,10 +1668,7 @@ def check_callable_call(
16681668
# An Enum() call that failed SemanticAnalyzerPass2.check_enum_call().
16691669
return callee.ret_type, callee
16701670

1671-
if (
1672-
callee.is_type_obj()
1673-
and callee.type_object().is_protocol
1674-
):
1671+
if callee.is_type_obj() and callee.type_object().is_protocol:
16751672
self.chk.fail(
16761673
message_registry.CANNOT_INSTANTIATE_PROTOCOL.format(callee.type_object().name),
16771674
context,

0 commit comments

Comments
 (0)