Skip to content

Commit

Permalink
✨ make pytest and cli behave with type annotations in Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
gessulat committed Sep 27, 2024
1 parent a000faf commit 3ff7410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/helpers/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import annotations
from typing import Union

import contextlib
import io
Expand Down Expand Up @@ -59,7 +59,7 @@ def flatten(lst):
"""
result = []
for i in lst:
if isinstance(i, list | tuple):
if isinstance(i, Union[list, tuple]):
result.extend(flatten(i))
else:
result.append(i)
Expand Down

0 comments on commit 3ff7410

Please sign in to comment.