Skip to content

Commit b0735d1

Browse files
[gunicorn] run pre-commit run --all-files
1 parent a365ecc commit b0735d1

File tree

5 files changed

+7
-17
lines changed

5 files changed

+7
-17
lines changed

stubs/gunicorn/gunicorn/config.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import argparse
22
from _typeshed import ConvertibleToInt
33
from collections.abc import Callable, Container
44
from ssl import SSLContext, _SSLMethod
5-
from typing import Annotated, Any, ClassVar
6-
from typing_extensions import TypeAlias, overload, override
5+
from typing import Annotated, Any, ClassVar, overload
6+
from typing_extensions import TypeAlias, override
77

88
from gunicorn.arbiter import Arbiter
99
from gunicorn.glogging import Logger as GLogger
@@ -64,7 +64,7 @@ _UserGroupValidatorType: TypeAlias = Callable[[str | int | None], int]
6464
_AddressValidatorType: TypeAlias = Callable[[str | None], _AddressType | None]
6565
_CallableValidatorType: TypeAlias = Callable[[str | _HookType], _HookType]
6666

67-
_ValidatorType: TypeAlias = (
67+
_ValidatorType: TypeAlias = ( # noqa: Y047
6868
_BoolValidatorType
6969
| _StringValidatorType
7070
| _ListStringValidatorType

stubs/gunicorn/gunicorn/debug.pyi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ class Spew:
1111

1212
def __init__(self, trace_names: Container[str] | None = None, show_values: bool = True) -> None: ...
1313
def __call__(
14-
self,
15-
frame: FrameType,
16-
event: str,
17-
arg: Any, # `arg` is not used inside the function, stub is set Any
14+
self, frame: FrameType, event: str, arg: Any # `arg` is not used inside the function, stub is set Any
1815
) -> Self: ...
1916

2017
def spew(trace_names: Container[str] | None = None, show_values: bool = False) -> None: ...

stubs/gunicorn/gunicorn/instrument/statsd.pyi

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,7 @@ class Statsd(Logger):
9898
extra: Mapping[str, object] | None = None,
9999
) -> None: ...
100100
@override
101-
def access(
102-
self,
103-
resp: Response,
104-
req: Request,
105-
environ: _EnvironType,
106-
request_time: timedelta,
107-
) -> None: ...
101+
def access(self, resp: Response, req: Request, environ: _EnvironType, request_time: timedelta) -> None: ...
108102
def gauge(self, name: str, value: float) -> None: ...
109103
def increment(self, name: str, value: int, sampling_rate: float = 1.0) -> None: ...
110104
def decrement(self, name: str, value: int, sampling_rate: float = 1.0) -> None: ...

stubs/gunicorn/gunicorn/reloader.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import sys
22
import threading
33
from collections.abc import Callable, Iterable
44
from re import Pattern
5-
from typing import TypedDict, type_check_only
6-
from typing_extensions import TypeAlias, override, NoReturn
5+
from typing import NoReturn, TypedDict, type_check_only
6+
from typing_extensions import TypeAlias, override
77

88
COMPILED_EXT_RE: Pattern[str]
99

stubs/gunicorn/gunicorn/workers/gthread.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ from collections import deque
33
from concurrent.futures import Future, ThreadPoolExecutor
44
from selectors import DefaultSelector
55
from types import FrameType
6-
from typing import Any
76

87
from gunicorn.config import Config
98
from gunicorn.glogging import Logger as GLogger

0 commit comments

Comments
 (0)