mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-24 09:48:39 +08:00
[encoding] Add win32_code_page_search_function (#14510)
Docs: https://docs.python.org/dev/library/codecs.html#encodings.win32_code_page_search_function
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
|
||||
_winapi.COPY_FILE_DIRECTORY
|
||||
compression.zlib.ZLIBNG_VERSION
|
||||
encodings.win32_code_page_search_function
|
||||
nt.readinto
|
||||
pathlib.Path.group
|
||||
pathlib.Path.owner
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import sys
|
||||
from codecs import CodecInfo
|
||||
|
||||
class CodecRegistryError(LookupError, SystemError): ...
|
||||
@@ -5,5 +6,8 @@ class CodecRegistryError(LookupError, SystemError): ...
|
||||
def normalize_encoding(encoding: str | bytes) -> str: ...
|
||||
def search_function(encoding: str) -> CodecInfo | None: ...
|
||||
|
||||
if sys.version_info >= (3, 14) and sys.platform == "win32":
|
||||
def win32_code_page_search_function(encoding: str) -> CodecInfo | None: ...
|
||||
|
||||
# Needed for submodules
|
||||
def __getattr__(name: str): ... # incomplete module
|
||||
|
||||
Reference in New Issue
Block a user