kopia lustrzana https://github.com/Yakifo/amqtt
adding support for python 3.10-3.12 in ci. fixing pylint errors
rodzic
a919ef344b
commit
d39bd2ec5c
|
@ -47,7 +47,9 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
python-version:
|
||||
# - "3.12"
|
||||
- "3.10"
|
||||
- "3.11"
|
||||
- "3.12"
|
||||
- "3.13"
|
||||
|
||||
steps:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue