PyType (@NotNull PyExpression value, @Nullable PyType expected, @NotNull TypeEvalContext context) { final PyType promotedToLiteral = PyLiteralType.Companion.promoteToLiteral(value, expected, context, null); if (promotedToLiteral != null) return promotedToLiteral; return context.getType(value); }