Integer literal
| 2240 | |
| 2241 | |
| 2242 | class IntExpr(Expression): |
| 2243 | """Integer literal""" |
| 2244 | |
| 2245 | __slots__ = ("value",) |
| 2246 | |
| 2247 | __match_args__ = ("value",) |
| 2248 | |
| 2249 | value: int # 0 by default |
| 2250 | |
| 2251 | def __init__(self, value: int) -> None: |
| 2252 | super().__init__() |
| 2253 | self.value = value |
| 2254 | |
| 2255 | def accept(self, visitor: ExpressionVisitor[T]) -> T: |
| 2256 | return visitor.visit_int_expr(self) |
| 2257 | |
| 2258 | |
| 2259 | # How mypy uses StrExpr and BytesExpr: |
no outgoing calls
no test coverage detected
searching dependent graphs…