mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-05 09:27:38 +08:00
Enable pyright for all Python 3 stubs (#5597)
* pyright: disable reportUnknownParameterType Unknown parameter types are preferred over Any annotations for incomplete stubs. Especially larger stubs are expected to be incomplete for some time and it would be a shame to lose the other pyright warnings for those stubs. * Also disable reportUnknownVariableType Fix problems with tkinter * Disable reportUnknownMemberType Fix pyright problems
This commit is contained in:
@@ -17,31 +17,7 @@
|
||||
"stubs/pymssql",
|
||||
"stubs/Routes",
|
||||
"stubs/scribe",
|
||||
"stubs/tornado",
|
||||
// Modules that are incomplete in some way.
|
||||
"stdlib/sqlite3/dbapi2.pyi",
|
||||
"stdlib/tkinter",
|
||||
"stdlib/xml/dom",
|
||||
"stdlib/xml/sax",
|
||||
"stubs/backports",
|
||||
"stubs/backports_abc",
|
||||
"stubs/boto",
|
||||
"stubs/cryptography",
|
||||
"stubs/docutils",
|
||||
"stubs/Flask",
|
||||
"stubs/Jinja2",
|
||||
"stubs/Markdown",
|
||||
"stubs/paramiko",
|
||||
"stubs/protobuf",
|
||||
"stubs/PyMySQL",
|
||||
"stubs/python-dateutil",
|
||||
"stubs/pyvmomi",
|
||||
"stubs/PyYAML",
|
||||
"stubs/redis",
|
||||
"stubs/requests",
|
||||
"stubs/simplejson",
|
||||
"stubs/waitress",
|
||||
"stubs/Werkzeug"
|
||||
"stubs/tornado"
|
||||
],
|
||||
"typeCheckingMode": "basic",
|
||||
"strictListInference": true,
|
||||
@@ -70,11 +46,8 @@
|
||||
"reportIncompatibleMethodOverride": "error",
|
||||
"reportIncompatibleVariableOverride": "error",
|
||||
"reportInvalidStringEscapeSequence": "error",
|
||||
"reportUnknownParameterType": "error",
|
||||
"reportUnknownArgumentType": "error",
|
||||
"reportUnknownLambdaType": "error",
|
||||
"reportUnknownVariableType": "error",
|
||||
"reportUnknownMemberType": "error",
|
||||
"reportMissingTypeArgument": "error",
|
||||
"reportUndefinedVariable": "error",
|
||||
"reportUnboundVariable": "error",
|
||||
|
||||
Reference in New Issue
Block a user