diff --git a/stdlib/locale.pyi b/stdlib/locale.pyi index 959054e84..2c4959843 100644 --- a/stdlib/locale.pyi +++ b/stdlib/locale.pyi @@ -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 diff --git a/tests/stubtest_allowlists/py311.txt b/tests/stubtest_allowlists/py311.txt index 18e53991a..e6ddc33f5 100644 --- a/tests/stubtest_allowlists/py311.txt +++ b/tests/stubtest_allowlists/py311.txt @@ -68,7 +68,6 @@ ipaddress.IPv4Interface.hostmask ipaddress.IPv6Interface.hostmask ipaddress._BaseNetwork.broadcast_address ipaddress._BaseNetwork.hostmask -locale.getencoding logging.getLevelNamesMapping logging.handlers.SysLogHandler.createSocket multiprocessing.managers.SharedMemoryServer.create