(self, e: CallExpr)
| 763 | self.chk.fail(message_registry.RUNTIME_PROTOCOL_EXPECTED, e) |
| 764 | |
| 765 | def check_protocol_issubclass(self, e: CallExpr) -> None: |
| 766 | for expr in mypy.checker.flatten(e.args[1]): |
| 767 | tp = get_proper_type(self.chk.lookup_type(expr)) |
| 768 | if isinstance(tp, FunctionLike) and tp.is_type_obj() and tp.type_object().is_protocol: |
| 769 | attr_members = non_method_protocol_members(tp.type_object()) |
| 770 | if attr_members: |
| 771 | self.chk.msg.report_non_method_protocol(tp.type_object(), attr_members, e) |
| 772 | |
| 773 | def check_typeddict_call( |
| 774 | self, |
no test coverage detected