Skip to content

Commit

Permalink
Drop Python 3.7 support, add tests for 3.11 and 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzkraut committed Jan 14, 2024
1 parent 54a03df commit 092530f
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 195 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
test:
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
6 changes: 5 additions & 1 deletion cologne_phonetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ def compare(*data: str, concat: bool = False) -> bool:
:raises: ValueError if only one input string is given
"""

if not isinstance(data[0], str) and isinstance(data[0], Iterable) and len(data) == 1:
if (
not isinstance(data[0], str)
and isinstance(data[0], Iterable)
and len(data) == 1
):
data = data[0]

if len(data) == 1:
Expand Down
Loading

0 comments on commit 092530f

Please sign in to comment.