mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Added missing type information for encodings module (#5106)
Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
],
|
||||
"exclude": [
|
||||
"**/@python2",
|
||||
"stdlib/encodings/__init__.pyi",
|
||||
"stdlib/sqlite3/dbapi2.pyi",
|
||||
"stdlib/tkinter",
|
||||
"stdlib/xml/dom",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import codecs
|
||||
from typing import Any
|
||||
from codecs import CodecInfo
|
||||
from typing import Optional, Union
|
||||
|
||||
def search_function(encoding: str) -> codecs.CodecInfo: ...
|
||||
class CodecRegistryError(LookupError, SystemError): ...
|
||||
|
||||
# Explicitly mark this package as incomplete.
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
def normalize_encoding(encoding: Union[str, bytes]) -> str: ...
|
||||
def search_function(encoding: str) -> Optional[CodecInfo]: ...
|
||||
|
||||
Reference in New Issue
Block a user