diff options
author | ptmcg <ptmcg@austin.rr.com> | 2021-09-02 12:42:25 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2021-09-02 12:42:25 -0500 |
commit | ec59ea1343b04d48b76fd96bb7468171fa149a81 (patch) | |
tree | 68574278ab70110d990773f5443958c5fc6eb424 /pyparsing/results.py | |
parent | bbb78fbe549152604f0b4ba1c4d8b0fecf8c156d (diff) | |
download | pyparsing-git-ec59ea1343b04d48b76fd96bb7468171fa149a81.tar.gz |
mypy cleanup
Diffstat (limited to 'pyparsing/results.py')
-rw-r--r-- | pyparsing/results.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pyparsing/results.py b/pyparsing/results.py index 172074d..3d52fbb 100644 --- a/pyparsing/results.py +++ b/pyparsing/results.py @@ -3,9 +3,10 @@ from collections.abc import MutableMapping, Mapping, MutableSequence import pprint from weakref import ref as wkref +from typing import Tuple, Any str_type = (str, bytes) -_generator_type = type((x for x in ())) +_generator_type = type((_ for _ in ())) class _ParseResultsWithOffset: @@ -70,7 +71,7 @@ class ParseResults: - year: 1999 """ - _null_values = (None, "", [], ()) + _null_values: Tuple[Any, ...] = (None, "", [], ()) __slots__ = [ "_name", |