API reference
python:astx:astx.literals.LiteralInteger.__init__
method __init__
__init__(value: int, loc: SourceLocation = NO_SOURCE_LOCATION) -> None
Source: packages/astx/src/astx/literals/numeric.py:652
Declared as: python:astx:astx.literals.numeric.LiteralInteger.__init__
Preserve the mathematical integer, without truncating its width.
Parameters
-
value — Type: int
-
loc — Type: SourceLocation
Raises
- TypeError: "If value is Boolean rather than an integer literal."