diff options
author | ptmcg <ptmcg@austin.rr.com> | 2022-07-14 03:35:10 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2022-07-14 03:35:10 -0500 |
commit | 06c12f685b5d0e29f01abc842dff8d268d93ffbf (patch) | |
tree | 720b0faafd07b602965918c88dc981958dba50ee /pyparsing/exceptions.py | |
parent | c74949d0cafbe7c136a54777b9b340c37f00b484 (diff) | |
download | pyparsing-git-06c12f685b5d0e29f01abc842dff8d268d93ffbf.tar.gz |
Add type annotations
Diffstat (limited to 'pyparsing/exceptions.py')
-rw-r--r-- | pyparsing/exceptions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pyparsing/exceptions.py b/pyparsing/exceptions.py index aa08f63..73f6c02 100644 --- a/pyparsing/exceptions.py +++ b/pyparsing/exceptions.py @@ -25,6 +25,12 @@ _exception_word_extractor = re.compile("([" + _extract_alphanums + "]{1,16})|.") class ParseBaseException(Exception): """base exception class for all parsing runtime exceptions""" + loc: int + msg: str + pstr: str + parser_element: typing.Any # "ParserElement" + args: typing.Tuple[str, int, typing.Optional[str]] + __slots__ = ( "loc", "msg", |