Skip to content

Commit 79b3948

Browse files
[gunicorn] Fix 'get_arity' func 'f' annotation
1 parent abd30fb commit 79b3948

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

stubs/gunicorn/gunicorn/util.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import types
22
from _typeshed import FileDescriptorLike, FileDescriptorOrPath, HasFileno, StrOrBytesPath
3-
from inspect import _ParameterKind
3+
from inspect import _IntrospectableCallable, _ParameterKind
44
from socket import socket
55
from typing import Any, Literal, NoReturn
66
from urllib.parse import SplitResult
77

88
from ._types import _AddressType, _WSGIAppType
9-
from .config import _HookType
109

1110
REDIRECT_TO: str
1211
hop_headers: set[str]
@@ -18,7 +17,7 @@ def load_class(
1817

1918
positionals: tuple[Literal[_ParameterKind.POSITIONAL_ONLY], Literal[_ParameterKind.POSITIONAL_OR_KEYWORD]]
2019

21-
def get_arity(f: _HookType) -> int: ...
20+
def get_arity(f: _IntrospectableCallable) -> int: ...
2221
def get_username(uid: int) -> str: ...
2322
def set_owner_process(uid: int, gid: int, initgroups: bool = False) -> None: ...
2423
def chown(path: FileDescriptorOrPath, uid: int, gid: int) -> None: ...

0 commit comments

Comments
 (0)