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

Class StarExpr

mypy/nodes.py:2360–2378  ·  view source on GitHub ↗

Star expression

Source from the content-addressed store, hash-verified

2358
2359
2360class StarExpr(Expression):
2361 """Star expression"""
2362
2363 __slots__ = ("expr", "valid")
2364
2365 __match_args__ = ("expr", "valid")
2366
2367 expr: Expression
2368 valid: bool
2369
2370 def __init__(self, expr: Expression) -> None:
2371 super().__init__()
2372 self.expr = expr
2373
2374 # Whether this starred expression is used in a tuple/list and as lvalue
2375 self.valid = False
2376
2377 def accept(self, visitor: ExpressionVisitor[T]) -> T:
2378 return visitor.visit_star_expr(self)
2379
2380
2381class RefExpr(Expression):

Callers 5

flatten_rvaluesMethod · 0.90
visit_StarredMethod · 0.90
visit_star_exprMethod · 0.90
read_expressionFunction · 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…