MCPcopy Index your code
hub / github.com/python/mypy / accept

Method accept

mypy/checker.py:762–767  ·  view source on GitHub ↗

Type check a node in the given type context.

(self, stmt: Statement)

Source from the content-addressed store, hash-verified

760 self.msg.cannot_determine_type(name, context)
761
762 def accept(self, stmt: Statement) -> None:
763 """Type check a node in the given type context."""
764 try:
765 stmt.accept(self)
766 except Exception as err:
767 report_internal_error(err, self.errors.file, stmt.line, self.errors, self.options)
768
769 def accept_loop(
770 self,

Callers 15

check_first_passMethod · 0.95
check_partialMethod · 0.95
accept_loopMethod · 0.95
check_func_defMethod · 0.95
visit_class_defMethod · 0.95
visit_blockMethod · 0.95
visit_if_stmtMethod · 0.95
visit_try_stmtMethod · 0.95
visit_with_stmtMethod · 0.95
visit_match_stmtMethod · 0.95
check_top_levelMethod · 0.45

Calls 1

report_internal_errorFunction · 0.90

Tested by

no test coverage detected