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

Class DictExpr

mypy/nodes.py:2910–2924  ·  view source on GitHub ↗

Dictionary literal expression {key: value, ...}.

Source from the content-addressed store, hash-verified

2908
2909
2910class DictExpr(Expression):
2911 """Dictionary literal expression {key: value, ...}."""
2912
2913 __slots__ = ("items",)
2914
2915 __match_args__ = ("items",)
2916
2917 items: list[tuple[Expression | None, Expression]]
2918
2919 def __init__(self, items: list[tuple[Expression | None, Expression]]) -> None:
2920 super().__init__()
2921 self.items = items
2922
2923 def accept(self, visitor: ExpressionVisitor[T]) -> T:
2924 return visitor.visit_dict_expr(self)
2925
2926
2927class TemplateStrExpr(Expression):

Callers 4

visit_DictMethod · 0.90
translate_dict_callMethod · 0.90
visit_dict_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…