adding support for python 3.10-3.12 in ci. fixing pylint errors

pull/167/head
Andrew Mirsky 2025-05-17 14:22:32 -04:00
rodzic a919ef344b
commit d39bd2ec5c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: A98E67635CDF2C39
3 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -47,7 +47,9 @@ jobs:
strategy:
matrix:
python-version:
# - "3.12"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:

Wyświetl plik

@ -3,7 +3,7 @@ import asyncio
try:
from asyncio import InvalidStateError, QueueFull, QueueShutDown
except ImportError:
"""Fallback for Python < 3.12"""
# Fallback for Python < 3.12
class InvalidStateError(Exception): # type: ignore[no-redef]
pass

Wyświetl plik

@ -1,6 +1,7 @@
import asyncio
from collections import deque
from typing import SupportsIndex, SupportsInt # pylint: disable=C0412
from collections import deque
try:
from collections.abc import Buffer
except ImportError:
@ -9,7 +10,6 @@ except ImportError:
class Buffer(Protocol): # type: ignore[no-redef]
def __buffer__(self, flags: int = ...) -> memoryview:
"""Mimic the behavior of `collections.abc.Buffer` for python 3.10-3.12."""
...
try:
from datetime import UTC, datetime
@ -17,7 +17,6 @@ except ImportError:
from datetime import datetime, timezone
UTC = timezone.utc
from typing import SupportsIndex, SupportsInt
import amqtt
from amqtt.broker import BrokerContext