summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2021-09-27 13:54:01 -0500
committerptmcg <ptmcg@austin.rr.com>2021-09-27 13:54:01 -0500
commit01ae70634099729411f7cc8a55ce2eaea08faf2e (patch)
tree5c012d4e24b4983ac7879e6cc68a86b1393de286
parent4ce63a9d8ef8c65af0760a56a09bc091a6354cb1 (diff)
downloadpyparsing-git-01ae70634099729411f7cc8a55ce2eaea08faf2e.tar.gz
Fix type annotation for ranges in unicode_sets; make _get_chars_for_ranges a lazyclassproperty
-rw-r--r--examples/simpleBool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/simpleBool.py b/examples/simpleBool.py
index ad8e658..530a53a 100644
--- a/examples/simpleBool.py
+++ b/examples/simpleBool.py
@@ -13,7 +13,7 @@
# Updated 2013-Sep-14 - improved Python 2/3 cross-compatibility
# Updated 2021-Sep-27 - removed Py2 compat; added type annotations
#
-from typing import Sequence, Callable, Union
+from typing import Callable, Iterable
from pyparsing import infixNotation, opAssoc, Keyword, Word, alphas, ParserElement
@@ -53,7 +53,7 @@ class BoolNot:
class BoolBinOp:
repr_symbol: str = ""
eval_fn: Callable[
- [Sequence[Union["BoolBinOp", BoolOperand]]], bool
+ [Iterable[bool]], bool
] = lambda _: False
def __init__(self, t):