Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c8cb60 commit 8bd3e16Copy full SHA for 8bd3e16
2 files changed
pyrightconfig.json
@@ -6,6 +6,7 @@
6
],
7
"exclude": [
8
"**/@python2",
9
+ "stdlib/encodings",
10
"stdlib/sqlite3/dbapi2.pyi",
11
"stdlib/tkinter",
12
"stdlib/xml/dom",
@@ -83,4 +84,4 @@
83
84
// Mypy's overlapping overload logic misses these issues (see mypy
85
// issue #10143 and #10157).
86
"reportOverlappingOverload": "none"
-}
87
+}
stdlib/encodings/__init__.pyi
@@ -1,7 +1,10 @@
1
from codecs import CodecInfo
2
-from typing import Optional, Union
+from typing import Any, Optional, Union
3
4
class CodecRegistryError(LookupError, SystemError): ...
5
def normalize_encoding(encoding: Union[str, bytes]) -> str: ...
def search_function(encoding: str) -> Optional[CodecInfo]: ...
+
+# Needed for submodules
+def __getattr__(name: str) -> Any: ... # incomplete
0 commit comments