void (@NotNull String text, boolean isInteger, @Nullable Long expectedLong, @NotNull BigInteger expectedInt, @NotNull BigDecimal expectedDecimal, @NotNull String expectedType) { final PyNumericLiteralExpression literal = configureByText(text); assertEquals(isInteger, literal.isIntegerLiteral()); assertEquals(expectedLong, literal.getLongValue()); assertEquals(expectedInt, literal.getBigIntegerValue()); assertEquals(0, expectedDecimal.compareTo(literal.getBigDecimalValue())); final PyType type = TypeEvalContext.codeInsightFallback(myFixture.getProject()).getType(literal); assertNotNull(type); assertEquals(expectedType, type.getName()); }