Skip to content

Commit 3f1c8fb

Browse files
authored
Merge branch 'attwad:master' into master
2 parents 11e1b9d + c032ca8 commit 3f1c8fb

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/python-test.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: [3.6, 3.7, 3.8, 3.9]
19+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
2020

2121
steps:
2222
- uses: actions/checkout@v2
@@ -37,7 +37,16 @@ jobs:
3737
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3838
- name: Check with mypy
3939
run: |
40-
pip install pygame # Needed for examples
40+
if [[ "${{ matrix.python-version }}" = "3.11" ]]
41+
then
42+
# --pre needed for Python 3.11 which doesn't have wheels (and may not
43+
# be fully supported) in version 2.1.2. Once 2.1.3 is released this
44+
# can be removed. Due to https://github.com/pygame/pygame/issues/3572
45+
# we can't apply this for all Python versions.
46+
pip install --pre pygame # Needed for examples
47+
else
48+
pip install pygame # Needed for examples
49+
fi
4150
mypy pythonosc examples
4251
- name: Test with pytest
4352
run: |

pythonosc/udp_client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
"""UDP Clients for sending OSC messages to an OSC server"""
22

3-
try:
3+
import sys
4+
5+
if sys.version_info > (3, 5):
46
from collections.abc import Iterable
5-
except ImportError: # python 3.5
7+
else:
68
from collections import Iterable
79

810
import socket

0 commit comments

Comments
 (0)