mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +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:
1 parent
a2c6ac07e3
commit
01b9048c9f
2 files changed
+4
-1
No files matched your search
@@ -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