From 26e21802da56b870f97bd0c06d200dfcbd1a2259 Mon Sep 17 00:00:00 2001 From: ptmcg Date: Sun, 25 Feb 2024 15:44:58 -0600 Subject: [PATCH] Blackening --- pyparsing/exceptions.py | 4 +++- pyparsing/results.py | 12 ++++++------ pyparsing/testing.py | 4 +++- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/pyparsing/exceptions.py b/pyparsing/exceptions.py index 6229985f..1aaea56f 100644 --- a/pyparsing/exceptions.py +++ b/pyparsing/exceptions.py @@ -14,7 +14,9 @@ from .unicode import pyparsing_unicode as ppu -class _ExceptionWordUnicodeSet(ppu.Latin1, ppu.LatinA, ppu.LatinB, ppu.Greek, ppu.Cyrillic): +class _ExceptionWordUnicodeSet( + ppu.Latin1, ppu.LatinA, ppu.LatinB, ppu.Greek, ppu.Cyrillic +): pass diff --git a/pyparsing/results.py b/pyparsing/results.py index cd935bdf..3e5fe208 100644 --- a/pyparsing/results.py +++ b/pyparsing/results.py @@ -693,14 +693,14 @@ def dump(self, indent="", full=True, include_list=True, _depth=0) -> str: for i, vv in enumerate(v): if isinstance(vv, ParseResults): vv_dump = vv.dump( - indent=indent, - full=full, - include_list=include_list, - _depth=_depth + 1, - ) + indent=indent, + full=full, + include_list=include_list, + _depth=_depth + 1, + ) out.append( f"{nl}{indent}{incr * _depth}[{i}]:{nl}{indent}{incr * (_depth + 1)}{vv_dump}" - ) + ) else: out.append( f"{nl}{indent}{incr * _depth}[{i}]:{nl}{indent}{incr * (_depth + 1)}{vv}" diff --git a/pyparsing/testing.py b/pyparsing/testing.py index 5136e2b9..985d21ed 100644 --- a/pyparsing/testing.py +++ b/pyparsing/testing.py @@ -235,7 +235,9 @@ def assertRunTestResults( ) @contextmanager - def assertRaisesParseException(self, exc_type=ParseException, expected_msg=None, msg=None): + def assertRaisesParseException( + self, exc_type=ParseException, expected_msg=None, msg=None + ): if expected_msg is not None: if isinstance(expected_msg, str): expected_msg = re.escape(expected_msg)