File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import types
22from _typeshed import FileDescriptorLike , FileDescriptorOrPath , HasFileno , StrOrBytesPath
3- from collections .abc import Callable
43from inspect import _ParameterKind
54from socket import socket
65from typing import Any , Literal , NoReturn
76from urllib .parse import SplitResult
87
98from ._types import _AddressType , _WSGIAppType
9+ from .config import _HookType
1010
1111REDIRECT_TO : str
1212hop_headers : set [str ]
1313
14- def load_entry_point (distribution : str , group : str , name : str ) -> Any : ...
14+ def load_entry_point (distribution : str , group : str , name : str ) -> type [ object ] : ...
1515def load_class (
1616 uri : str | object , default : str = "gunicorn.workers.sync.SyncWorker" , section : str = "gunicorn.workers"
1717) -> type [Any ]: ...
1818
1919positionals : tuple [Literal [_ParameterKind .POSITIONAL_ONLY ], Literal [_ParameterKind .POSITIONAL_OR_KEYWORD ]]
2020
21- def get_arity (f : Callable [..., Any ] ) -> int : ...
21+ def get_arity (f : _HookType ) -> int : ...
2222def get_username (uid : int ) -> str : ...
2323def set_owner_process (uid : int , gid : int , initgroups : bool = False ) -> None : ...
2424def chown (path : FileDescriptorOrPath , uid : int , gid : int ) -> None : ...
You can’t perform that action at this time.
0 commit comments