We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 719f89e commit 4cf20ffCopy full SHA for 4cf20ff
mypy/checkexpr.py
@@ -1668,10 +1668,7 @@ def check_callable_call(
1668
# An Enum() call that failed SemanticAnalyzerPass2.check_enum_call().
1669
return callee.ret_type, callee
1670
1671
- if (
1672
- callee.is_type_obj()
1673
- and callee.type_object().is_protocol
1674
- ):
+ if callee.is_type_obj() and callee.type_object().is_protocol:
1675
self.chk.fail(
1676
message_registry.CANNOT_INSTANTIATE_PROTOCOL.format(callee.type_object().name),
1677
context,
0 commit comments