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

Method annotate_as_incomplete

mypy/stubgen.py:1145–1148  ·  view source on GitHub ↗
(self, lvalue: NameExpr)

Source from the content-addressed store, hash-verified

1143 self._state = CLASS
1144
1145 def annotate_as_incomplete(self, lvalue: NameExpr) -> None:
1146 incomplete = self.add_name("_typeshed.Incomplete")
1147 self.add(f"{self._indent}{lvalue.name}: {incomplete}\n")
1148 self._state = VAR
1149
1150 def is_alias_expression(self, expr: Expression, top_level: bool = True) -> bool:
1151 """Return True for things that look like target for an alias.

Callers 2

process_namedtupleMethod · 0.95
process_typeddictMethod · 0.95

Calls 2

add_nameMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected