MCPcopy Create free account
hub / github.com/python/mypy / get_type

Method get_type

mypy/inspections.py:595–597  ·  view source on GitHub ↗

Get types of expression(s) at a location.

(self, location: str)

Source from the content-addressed store, hash-verified

593 return self.run_inspection_by_position(state.tree, line, column, method)
594
595 def get_type(self, location: str) -> dict[str, object]:
596 """Get types of expression(s) at a location."""
597 return self.run_inspection(location, self.expr_type)
598
599 def get_attrs(self, location: str) -> dict[str, object]:
600 """Get attributes of expression(s) at a location."""

Callers 1

cmd_inspectMethod · 0.95

Calls 1

run_inspectionMethod · 0.95

Tested by

no test coverage detected