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

Class IntExpr

mypy/nodes.py:2242–2256  ·  view source on GitHub ↗

Integer literal

Source from the content-addressed store, hash-verified

2240
2241
2242class 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:

Callers 5

visit_ConstantMethod · 0.90
visit_int_exprMethod · 0.90
read_expressionFunction · 0.90
translate_sum_callFunction · 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…