@@ -23,7 +23,7 @@ from functools import cache
2323from optparse import Values
2424from os import PathLike
2525from re import Pattern
26- from typing import IO , Any , AnyStr , BinaryIO , Generic , NamedTuple , TextIO , TypeVar , overload
26+ from typing import IO , Any , AnyStr , BinaryIO , Generic , Literal , NamedTuple , TextIO , TypeVar , overload
2727from typing_extensions import Self , TypeAlias
2828from urllib .parse import _QueryType , _QuoteVia
2929from xml .etree import ElementTree as ET
@@ -573,7 +573,9 @@ def get_executable_path() -> str: ...
573573def get_user_config_dirs (package_name : str ) -> Iterator [str ]: ...
574574def get_system_config_dirs (package_name : str ) -> Iterator [str ]: ...
575575def time_seconds (** kwargs : float ) -> int : ...
576- def jwt_encode_hs256 (payload_data : Any , key : str , headers : Mapping [str , Any ] = ...) -> bytes : ... # Passed to json.dumps().
576+ def jwt_encode (
577+ payload_data : Any , key : str , * , alg : Literal ["HS256" ] = "HS256" , headers : Mapping [str , Any ] | None = None
578+ ) -> str : ... # payload_data and headers are passed to json.dumps().
577579def jwt_decode_hs256 (jwt : str ) -> Any : ... # Returns json.loads() output.
578580def supports_terminal_sequences (stream : IO [Any ]) -> bool : ...
579581def windows_enable_vt_mode () -> None : ...
0 commit comments