@@ -12,8 +12,8 @@ hop_headers: set[str]
1212
1313def load_entry_point (distribution : str , group : str , name : str ) -> type [object ]: ...
1414def load_class (
15- uri : str | object , default : str = "gunicorn.workers.sync.SyncWorker" , section : str = "gunicorn.workers"
16- ) -> type [Any ]: ...
15+ uri : str | type [ Logger ] | type [ SyncWorker ] , default : str = "gunicorn.workers.sync.SyncWorker" , section : str = "gunicorn.workers"
16+ ) -> type [Logger ] | type [ SyncWorker ]: ...
1717
1818positionals : tuple [Literal [_ParameterKind .POSITIONAL_ONLY ], Literal [_ParameterKind .POSITIONAL_OR_KEYWORD ]]
1919
@@ -30,19 +30,19 @@ def close(sock: socket) -> None: ...
3030def write_chunk (sock : socket , data : bytes ) -> None : ...
3131def write (sock : socket , data : bytes , chunked : bool = False ) -> None : ...
3232def write_nonblock (sock : socket , data : bytes , chunked : bool = False ) -> None : ...
33- def write_error (sock : socket , status_int : int , reason : str , mesg : str ) -> None : ...
33+ def write_error (sock : socket , status_int : int , reason : LiteralString , mesg : str ) -> None : ...
3434def import_app (module : str ) -> _WSGIAppType : ...
3535def getcwd () -> str : ...
3636def http_date (timestamp : float | None = None ) -> str : ...
3737def is_hoppish (header : str ) -> bool : ...
3838def daemonize (enable_stdio_inheritance : bool = False ) -> None : ...
3939def seed () -> None : ...
4040def check_is_writable (path : FileDescriptorOrPath ) -> None : ...
41- def to_bytestring (value : str | bytes , encoding : str = "utf8" ) -> bytes : ...
41+ def to_bytestring (value : str | bytes , encoding : LiteralString = "utf8" ) -> bytes : ...
4242def has_fileno (obj : HasFileno ) -> bool : ...
4343def warn (msg : str ) -> None : ...
4444def make_fail_app (msg : str ) -> _WSGIAppType : ...
4545def split_request_uri (uri : str ) -> SplitResult : ...
4646def reraise (tp : type [BaseException ], value : BaseException | None , tb : types .TracebackType | None = None ) -> NoReturn : ...
47- def bytes_to_str (b : bytes ) -> str : ...
47+ def bytes_to_str (b : bytes | str ) -> str : ...
4848def unquote_to_wsgi_str (string : str ) -> str : ...
0 commit comments