aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/token.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/token.py')
-rw-r--r--Lib/token.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/token.py b/Lib/token.py
index a1fde61cd8a..f61723cc09d 100644
--- a/Lib/token.py
+++ b/Lib/token.py
@@ -134,11 +134,11 @@ EXACT_TOKEN_TYPES = {
'~': TILDE,
}
-def ISTERMINAL(x):
+def ISTERMINAL(x: int) -> bool:
return x < NT_OFFSET
-def ISNONTERMINAL(x):
+def ISNONTERMINAL(x: int) -> bool:
return x >= NT_OFFSET
-def ISEOF(x):
+def ISEOF(x: int) -> bool:
return x == ENDMARKER