diff options
author | ptmcg <ptmcg@austin.rr.com> | 2022-05-29 20:29:44 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2022-05-29 20:29:44 -0500 |
commit | d570869a9ba683c021545e53bb1ba159bee7c2af (patch) | |
tree | 98151f48d3a69e3b4bcf6ccaaf570a1b7e33d206 /pyparsing/testing.py | |
parent | bd7fd3c112edd9e2741d195154d4d82df986dbad (diff) | |
download | pyparsing-git-d570869a9ba683c021545e53bb1ba159bee7c2af.tar.gz |
More added type annotations; reworked Word.__init__ so that excludeChars exclusion code is clearer
Diffstat (limited to 'pyparsing/testing.py')
-rw-r--r-- | pyparsing/testing.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pyparsing/testing.py b/pyparsing/testing.py index 84a0ef1..e2dd355 100644 --- a/pyparsing/testing.py +++ b/pyparsing/testing.py @@ -265,6 +265,7 @@ class pyparsing_test: if expand_tabs: s = s.expandtabs() if mark_control is not None: + mark_control = typing.cast(str, mark_control) if mark_control == "unicode": tbl = str.maketrans( {c: u for c, u in zip(range(0, 33), range(0x2400, 0x2433))} |