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

Method is_top_level

mypy/stubutil.py:715–717  ·  view source on GitHub ↗

Are we processing the top level of a file?

(self)

Source from the content-addressed store, hash-verified

713 self._output.append(string)
714
715 def is_top_level(self) -> bool:
716 """Are we processing the top level of a file?"""
717 return self._indent == ""
718
719 def indent(self) -> None:
720 """Add one level of indentation."""

Callers 7

record_nameMethod · 0.95
is_recorded_nameMethod · 0.95
is_not_in_allMethod · 0.95
visit_func_defMethod · 0.45
visit_class_defMethod · 0.45
visit_assignment_stmtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected