MCPcopy
hub / github.com/python/mypy / accept

Method accept

mypy/checkstrformat.py:1082–1084  ·  view source on GitHub ↗

Type check a node. Alias for TypeChecker.accept.

(self, expr: Expression, context: Type | None = None)

Source from the content-addressed store, hash-verified

1080 return self.chk.named_type(name)
1081
1082 def accept(self, expr: Expression, context: Type | None = None) -> Type:
1083 """Type check a node. Alias for TypeChecker.accept."""
1084 return self.chk.expr_checker.accept(expr, context)
1085
1086
1087def has_type_component(typ: Type, fullname: str) -> bool:

Callers 5

check_exprMethod · 0.95
apply_field_accessorsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected