locale: add locale.getencoding (#7887)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
This commit is contained in:
Jelle Zijlstra
2022-05-19 18:20:16 -07:00
committed by GitHub
parent 1ffb1bdc0e
commit 64766c8521
2 changed files with 3 additions and 1 deletions

View File

@@ -143,6 +143,9 @@ if sys.platform == "linux" or sys.platform == "darwin":
def bindtextdomain(__domain: _str, __dir: StrPath | None) -> _str: ...
def bind_textdomain_codeset(__domain: _str, __codeset: _str | None) -> _str | None: ...
if sys.version_info >= (3, 11):
def getencoding() -> _str: ...
locale_alias: dict[_str, _str] # undocumented
locale_encoding_alias: dict[_str, _str] # undocumented
windows_locale: dict[int, _str] # undocumented