PY-76825 Conformance test failure: namedtuples_define_functional.py

Merge-request: IJ-MR-157423
Merged-by: Aleksandr Govenko <aleksandr.govenko@jetbrains.com>

GitOrigin-RevId: 43e0729c540507d0a280d46aee4ca086e572d527
This commit is contained in:
Aleksandr.Govenko
2025-03-13 20:55:38 +00:00
committed by intellij-monorepo-bot
parent e09f1b5935
commit fdd47a988b
7 changed files with 94 additions and 60 deletions

View File

@@ -587,6 +587,17 @@ public final @NonNls class PyNames {
TRY
);
// As per: https://docs.python.org/3/reference/lexical_analysis.html#keywords
public static final Set<String> PY3_KEYWORDS = Set.of(
FALSE, AWAIT, ELSE, IMPORT, PASS,
NONE, BREAK, EXCEPT, IN, RAISE,
TRUE, CLASS, FINALLY, IS, RETURN,
AND, CONTINUE, FOR, LAMBDA, TRY,
AS, DEF, FROM, NONLOCAL, WHILE,
ASSERT, DEL, GLOBAL, NOT, WITH,
ASYNC, ELIF, IF, OR, YIELD
);
public static final Set<String> BUILTIN_INTERFACES = Set.of(
CALLABLE, HASHABLE, ITERABLE, ITERATOR, SIZED, CONTAINER, SEQUENCE, MAPPING, ABC_COMPLEX, ABC_REAL, ABC_RATIONAL, ABC_INTEGRAL,
ABC_NUMBER