Skip to content

Commit b814880

Browse files
updates & changes for pypy
1 parent 6293596 commit b814880

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

poetry.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ py-datastruct = "^1.0.0"
5959
typing-extensions="^4.12"
6060

6161
[tool.poetry.group.tests.dependencies]
62-
pytest = "8.3.2"
62+
pytest = "8.3.3"
6363
pytest-xdist = "3.6.1"
6464
coverage = "7.6.1"
65-
pylint = "3.2.6"
65+
pylint = "3.2.7"
6666
pip-tools = "7.4.1"
6767
black = "24.8.0"
6868
pytest-cov = "5.0.0"

serial_usbipclient/tests/mock_usbip.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
import struct
1313
import sys
1414
import traceback
15-
from enum import EnumType, StrEnum
15+
from enum import EnumMeta
16+
1617
from pathlib import Path
1718
from threading import Event, Thread
1819
from time import sleep, time
@@ -171,7 +172,7 @@ def set_attribute(self, urb: URBBase, name: str, value: Any):
171172
elif value.startswith('0x'):
172173
value = self.from_hex(value)
173174

174-
if type(field[0].type) == EnumType: # pylint: disable=unidiomatic-typecheck
175+
if type(field[0].type) == EnumMeta: # pylint: disable=unidiomatic-typecheck
175176
value = int(value)
176177
typed_value = field[0].type(value)
177178
setattr(urb, name, typed_value)
@@ -419,10 +420,10 @@ class MockUSBIP:
419420
"""mock USBIP server"""
420421
STARTUP_TIMEOUT: float = 5.0
421422

422-
class DebugCommands(StrEnum):
423+
class DebugCommands:
423424
"""commands that are tunneled and their expected behavior"""
424-
NO_WRITE_RESPONSE = 'no-write-response' # write does not return acknowledgement
425-
NO_READ_RESPONSE = 'no-read-response' # suppress an expected read
425+
NO_WRITE_RESPONSE: str = 'no-write-response' # write does not return acknowledgement
426+
NO_READ_RESPONSE: str = 'no-read-response' # suppress an expected read
426427

427428
def __init__(self, host: str, port: int, socket_class: type = SocketWrapper):
428429
"""set up our instance"""

0 commit comments

Comments
 (0)