mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-13 20:00:52 +08:00
add rich comparison bound to heapq and priorityqueues using heapq (#14419)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import sys
|
||||
from _typeshed import SupportsRichComparisonT
|
||||
from asyncio.events import AbstractEventLoop
|
||||
from types import GenericAlias
|
||||
from typing import Any, Generic, TypeVar
|
||||
@@ -50,5 +51,5 @@ class Queue(Generic[_T], _LoopBoundMixin): # noqa: Y059
|
||||
if sys.version_info >= (3, 13):
|
||||
def shutdown(self, immediate: bool = False) -> None: ...
|
||||
|
||||
class PriorityQueue(Queue[_T]): ...
|
||||
class PriorityQueue(Queue[SupportsRichComparisonT]): ...
|
||||
class LifoQueue(Queue[_T]): ...
|
||||
|
||||
Reference in New Issue
Block a user