Skip to content

Commit

Permalink
Fix style error on untyped list.
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalsheth committed Dec 16, 2022
1 parent 6fe3014 commit 3bc7834
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sympy/printing/tests/test_smtlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ class _W(Enum):

@contextlib.contextmanager
def _check_warns(expected: typing.Iterable[_W]):
warnings = []
log_warn = warnings.append
warns: typing.List[str] = []
log_warn = warns.append
yield log_warn

errors = []
for i, (w, e) in enumerate(itertools.zip_longest(warnings, expected)):
for i, (w, e) in enumerate(itertools.zip_longest(warns, expected)):
if not e:
errors += [f"[{i}] Received unexpected warning `{w}`."]
elif not w:
Expand Down

0 comments on commit 3bc7834

Please sign in to comment.