summaryrefslogtreecommitdiff
path: root/pyparsing/core.py
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2021-08-23 10:21:53 -0500
committerptmcg <ptmcg@austin.rr.com>2021-08-23 10:21:53 -0500
commit69a8ab77ce673066b82171d1952e3b2b581f0c0c (patch)
tree26f34bdbe388618e2b500d14e3f5735e6045eb7f /pyparsing/core.py
parentf495036ad0f17b5b38756024b1a4bdaad52d60d5 (diff)
downloadpyparsing-git-69a8ab77ce673066b82171d1952e3b2b581f0c0c.tar.gz
In 3.7, Callable cannot use NoReturn for a return type, must use None
Diffstat (limited to 'pyparsing/core.py')
-rw-r--r--pyparsing/core.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyparsing/core.py b/pyparsing/core.py
index b4c6dd9..7163559 100644
--- a/pyparsing/core.py
+++ b/pyparsing/core.py
@@ -201,12 +201,12 @@ ParseCondition = Union[
Callable[[int, ParseResults], bool],
Callable[[str, int, ParseResults], bool],
]
-ParseFailAction = Callable[[str, int, "ParserElement", Exception], NoReturn]
-DebugStartAction = Callable[[str, int, "ParserElement", bool], NoReturn]
+ParseFailAction = Callable[[str, int, "ParserElement", Exception], None]
+DebugStartAction = Callable[[str, int, "ParserElement", bool], None]
DebugSuccessAction = Callable[
- [str, int, int, "ParserElement", ParseResults, bool], NoReturn
+ [str, int, int, "ParserElement", ParseResults, bool], None
]
-DebugExceptionAction = Callable[[str, int, "ParserElement", Exception, bool], NoReturn]
+DebugExceptionAction = Callable[[str, int, "ParserElement", Exception, bool], None]
alphas = string.ascii_uppercase + string.ascii_lowercase