Skip to content

Commit 5f0f3b7

Browse files
authored
Bump gevent to 25.4.* (#13855)
1 parent 9285de0 commit 5f0f3b7

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

stubs/gevent/gevent/_config.pyi

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class Config:
7272
ares_udp_port: _SettingDescriptor[str | int | None]
7373
ares_tcp_port: _SettingDescriptor[str | int | None]
7474
ares_servers: _SettingDescriptor[Sequence[str] | str | None]
75+
print_blocking_reports: _SettingDescriptor[bool]
7576

7677
class ImportableSetting(Generic[_T]):
7778
default: str | Sequence[str]

stubs/gevent/gevent/lock.pyi

+1
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ class RLock:
3838
def __enter__(self) -> bool: ...
3939
def release(self) -> None: ...
4040
def __exit__(self, typ: type[BaseException] | None, val: BaseException | None, tb: TracebackType | None) -> None: ...
41+
def locked(self) -> bool: ...

stubs/gevent/gevent/pywsgi.pyi

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class Input:
2828
position: int
2929
chunked_input: bool
3030
chunk_length: int
31+
send_100_continue_enabled: bool
3132
def __init__(
3233
self, rfile: BufferedReader, content_length: int | None, socket: _GeventSocket | None = None, chunked_input: bool = False
3334
) -> None: ...

stubs/gevent/gevent/queue.pyi

+10-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ from collections import deque
33
from collections.abc import Iterable
44

55
# technically it is using _PySimpleQueue, which has the same interface as SimpleQueue
6-
from queue import Empty as Empty, Full as Full, SimpleQueue as SimpleQueue
6+
from queue import Empty as Empty, Full as Full
77
from typing import Any, Generic, Literal, TypeVar, final, overload
88
from typing_extensions import Self
99

@@ -19,13 +19,14 @@ else:
1919

2020
_T = TypeVar("_T")
2121

22-
class Queue(Generic[_T]):
22+
class SimpleQueue(Generic[_T]):
2323
@property
2424
def hub(self) -> Hub: ... # readonly in Cython
2525
@property
2626
def queue(self) -> deque[_T]: ... # readonly in Cython
2727
maxsize: int | None
2828
is_shutdown: bool
29+
2930
@overload
3031
def __init__(self, maxsize: int | None = None) -> None: ...
3132
@overload
@@ -42,26 +43,25 @@ class Queue(Generic[_T]):
4243
def put(self, item: _T, block: bool = True, timeout: float | None = None) -> None: ...
4344
def put_nowait(self, item: _T) -> None: ...
4445
def qsize(self) -> int: ...
45-
def shutdown(self, immediate: bool = False) -> None: ...
4646
def __bool__(self) -> bool: ...
4747
def __iter__(self) -> Self: ...
4848
def __len__(self) -> int: ...
4949
def __next__(self) -> _T: ...
5050
next = __next__
5151

5252
@final
53-
class UnboundQueue(Queue[_T]):
53+
class UnboundQueue(SimpleQueue[_T]):
5454
@overload
5555
def __init__(self, maxsize: None = None) -> None: ...
5656
@overload
5757
def __init__(self, maxsize: None, items: Iterable[_T]) -> None: ...
5858
@overload
5959
def __init__(self, maxsize: None = None, *, items: Iterable[_T]) -> None: ...
6060

61-
class PriorityQueue(Queue[_T]): ...
62-
class LifoQueue(Queue[_T]): ...
61+
class PriorityQueue(SimpleQueue[_T]): ...
62+
class LifoQueue(SimpleQueue[_T]): ...
6363

64-
class JoinableQueue(Queue[_T]):
64+
class Queue(SimpleQueue[_T]):
6565
@property
6666
def unfinished_tasks(self) -> int: ... # readonly in Cython
6767
@overload
@@ -72,6 +72,9 @@ class JoinableQueue(Queue[_T]):
7272
def __init__(self, maxsize: int | None = None, *, items: Iterable[_T], unfinished_tasks: int | None = None) -> None: ...
7373
def join(self, timeout: float | None = None) -> bool: ...
7474
def task_done(self) -> None: ...
75+
def shutdown(self, immediate: bool = False) -> None: ...
76+
77+
JoinableQueue = Queue
7578

7679
class Channel(Generic[_T]):
7780
@property

0 commit comments

Comments
 (0)