(self, e: CallExpr)
| 752 | return False |
| 753 | |
| 754 | def check_runtime_protocol_test(self, e: CallExpr) -> None: |
| 755 | for expr in mypy.checker.flatten(e.args[1]): |
| 756 | tp = get_proper_type(self.chk.lookup_type(expr)) |
| 757 | if ( |
| 758 | isinstance(tp, FunctionLike) |
| 759 | and tp.is_type_obj() |
| 760 | and tp.type_object().is_protocol |
| 761 | and not tp.type_object().runtime_protocol |
| 762 | ): |
| 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]): |
no test coverage detected