add rich comparison bound to heapq and priorityqueues using heapq (#14419)

This commit is contained in:
Michael H
2025-07-15 22:36:28 -04:00
committed by GitHub
parent 84e41f2853
commit d73534badf
3 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -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]): ...