diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index 577576a4e5f8b..38d5ad2f787c4 100644 --- a/mypy/checkexpr.py +++ b/mypy/checkexpr.py @@ -1671,8 +1671,6 @@ def check_callable_call( if ( callee.is_type_obj() and callee.type_object().is_protocol - # Exception for Type[...] - and not callee.from_type_type ): self.chk.fail( message_registry.CANNOT_INSTANTIATE_PROTOCOL.format(callee.type_object().name), @@ -1681,8 +1679,6 @@ def check_callable_call( elif ( callee.is_type_obj() and callee.type_object().is_abstract - # Exception for Type[...] - and not callee.from_type_type and not callee.type_object().fallback_to_any ): type = callee.type_object()