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

Method add

mypy/stubutil.py:711–713  ·  view source on GitHub ↗

Add text to generated stub.

(self, string: str)

Source from the content-addressed store, hash-verified

709 return ""
710
711 def add(self, string: str) -> None:
712 """Add text to generated stub."""
713 self._output.append(string)
714
715 def is_top_level(self) -> bool:
716 """Are we processing the top level of a file?"""

Callers 15

check_undefined_namesMethod · 0.95
record_definitionMethod · 0.45
record_undefined_refMethod · 0.45
expand_actual_typeMethod · 0.45
check_second_passMethod · 0.45
enter_partial_typesMethod · 0.45
visit_type_varMethod · 0.45
itemsMethod · 0.45
solve_with_dependentFunction · 0.45

Calls 1

appendMethod · 0.80

Tested by 4

test_stubsFunction · 0.36