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

Class MemberExpr

mypy/nodes.py:2449–2465  ·  view source on GitHub ↗

Member access expression x.y

Source from the content-addressed store, hash-verified

2447
2448
2449class MemberExpr(RefExpr):
2450 """Member access expression x.y"""
2451
2452 __slots__ = ("expr", "name", "def_var")
2453
2454 __match_args__ = ("expr", "name", "node")
2455
2456 def __init__(self, expr: Expression, name: str) -> None:
2457 super().__init__()
2458 self.expr = expr
2459 self.name = name
2460 # The variable node related to a definition through 'self.x = <initializer>'.
2461 # The nodes of other kinds of member expressions are resolved during type checking.
2462 self.def_var: Var | None = None
2463
2464 def accept(self, visitor: ExpressionVisitor[T]) -> T:
2465 return visitor.visit_member_expr(self)
2466
2467
2468# Kinds of arguments

Callers 10

check_init_subclassMethod · 0.90
visit_del_stmtMethod · 0.90
visit_JoinedStrMethod · 0.90
visit_FormattedValueMethod · 0.90
visit_AttributeMethod · 0.90
visit_member_exprMethod · 0.90
read_expressionFunction · 0.90
build_fstring_joinFunction · 0.90
read_fstring_itemFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…