chore: drop python 3.7 support (#284)

This commit is contained in:
J. Nick Koston
2024-06-26 07:44:20 +02:00
committed by GitHub
parent fb016aa33f
commit fa48bc025c
9 changed files with 426 additions and 432 deletions

View File

@@ -1,5 +1,5 @@
from struct import Struct, error
from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
from ..signature import SignatureType, Variant, get_signature_tree

View File

@@ -513,10 +513,8 @@ class Unmarshaller:
-self._pos & (UINT32_SIZE - 1)
) + UINT32_SIZE # align for the uint32
if self._is_native and cython.compiled:
array_length = (
_cast_uint32_native( # type: ignore[name-defined] # pragma: no cover
self._buf, self._pos - UINT32_SIZE
)
array_length = _cast_uint32_native( # type: ignore[name-defined] # pragma: no cover
self._buf, self._pos - UINT32_SIZE
)
else:
array_length = self._uint32_unpack(self._buf, self._pos - UINT32_SIZE)[0] # type: ignore[misc]

View File

@@ -21,7 +21,7 @@ def _message_reader(
return
try:
process(message)
except Exception as e:
except Exception:
logging.error("Unexpected error processing message: %s", exc_info=True)
# If we are not negotiating unix fds, we can stop reading as soon as we have
# the buffer is empty as asyncio will call us again when there is more data.