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

Class SetExpr

mypy/nodes.py:2969–2983  ·  view source on GitHub ↗

Set literal expression {value, ...}.

Source from the content-addressed store, hash-verified

2967
2968
2969class SetExpr(Expression):
2970 """Set literal expression {value, ...}."""
2971
2972 __slots__ = ("items",)
2973
2974 __match_args__ = ("items",)
2975
2976 items: list[Expression]
2977
2978 def __init__(self, items: list[Expression]) -> None:
2979 super().__init__()
2980 self.items = items
2981
2982 def accept(self, visitor: ExpressionVisitor[T]) -> T:
2983 return visitor.visit_set_expr(self)
2984
2985
2986class GeneratorExpr(Expression):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…