ruff: Fix PYI059 Generic[] should always be the last base class.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2025-09-19 15:21:33 -07:00
committed by Tim Abbott
parent e9abaacd5c
commit fa4d680851
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ _KeyT = TypeVar("_KeyT")
_DataT = TypeVar("_DataT")
class BaseNotes(Generic[_KeyT, _DataT], ABC):
class BaseNotes(ABC, Generic[_KeyT, _DataT]):
"""This class defines a generic type-safe mechanism for associating
additional data with an object (without modifying the original
object via subclassing or monkey-patching).

View File

@@ -32,7 +32,7 @@ Consumer: TypeAlias = Callable[[ChannelT, Basic.Deliver, pika.BasicProperties, b
# RabbitMQ/Pika's queuing system; its purpose is to just provide an
# interface for external files to put things into queues and take them
# out from bots without having to import pika code all over our codebase.
class QueueClient(Generic[ChannelT], ABC):
class QueueClient(ABC, Generic[ChannelT]):
def __init__(
self,
# Disable RabbitMQ heartbeats by default because BlockingConnection can't process them