Dictionary literal expression {key: value, ...}.
| 2908 | |
| 2909 | |
| 2910 | class 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 | |
| 2927 | class TemplateStrExpr(Expression): |
no outgoing calls
no test coverage detected
searching dependent graphs…