mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-09 14:55:50 +08:00
Added missing type information for encodings module (#5106)
Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
1 parent
8115299ee2
commit
faa5c70f25
2 files changed
+5
-6
No files matched your search
@@ -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