mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 12:01:52 +08:00
I generated these using stubgen and made various manual tweaks to fix issues reported by stubtest. Some of the submodules with underscore prefixes are used by open source code, so I'm including them. Various definitions are platform-specific. I added some sys.platform checks, but it's hard to get these right. We may need to iterate on them later.
107 lines
3.4 KiB
JSON
107 lines
3.4 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json",
|
|
"typeshedPath": ".",
|
|
"include": [
|
|
"stdlib",
|
|
"stubs"
|
|
],
|
|
"exclude": [
|
|
// Python 2 only modules.
|
|
"**/@python2",
|
|
"stubs/enum34",
|
|
"stubs/fb303",
|
|
"stubs/futures",
|
|
"stubs/ipaddress",
|
|
"stubs/kazoo",
|
|
"stubs/openssl-python",
|
|
"stubs/pathlib2",
|
|
"stubs/pymssql",
|
|
"stubs/scribe",
|
|
"stubs/tornado",
|
|
// Modules that are incomplete in some way.
|
|
"stdlib/lib2to3/refactor.pyi",
|
|
"stdlib/sqlite3/dbapi2.pyi",
|
|
"stdlib/tkinter",
|
|
"stdlib/xml/dom",
|
|
"stdlib/xml/sax",
|
|
"stubs/babel",
|
|
"stubs/backports",
|
|
"stubs/backports_abc",
|
|
"stubs/bleach",
|
|
"stubs/boto",
|
|
"stubs/beautifulsoup4",
|
|
"stubs/caldav",
|
|
"stubs/commonmark",
|
|
"stubs/cryptography",
|
|
"stubs/docutils",
|
|
"stubs/Flask",
|
|
"stubs/html5lib",
|
|
"stubs/httplib2",
|
|
"stubs/Jinja2",
|
|
"stubs/Markdown",
|
|
"stubs/oauthlib",
|
|
"stubs/Pillow",
|
|
"stubs/paramiko",
|
|
"stubs/protobuf",
|
|
"stubs/psutil",
|
|
"stubs/Pygments",
|
|
"stubs/PyMySQL",
|
|
"stubs/python-dateutil",
|
|
"stubs/pyvmomi",
|
|
"stubs/PyYAML",
|
|
"stubs/redis",
|
|
"stubs/requests",
|
|
"stubs/simplejson",
|
|
"stubs/slumber",
|
|
"stubs/stripe",
|
|
"stubs/vobject",
|
|
"stubs/waitress",
|
|
"stubs/Werkzeug"
|
|
],
|
|
"typeCheckingMode": "basic",
|
|
"strictListInference": true,
|
|
"strictDictionaryInference": true,
|
|
"strictParameterNoneValue": true,
|
|
"reportFunctionMemberAccess": "error",
|
|
"reportMissingModuleSource": "none",
|
|
"reportMissingTypeStubs": "error",
|
|
"reportUnusedImport": "error",
|
|
"reportUnusedClass": "error",
|
|
"reportUnusedFunction": "error",
|
|
"reportUnusedVariable": "error",
|
|
"reportDuplicateImport": "error",
|
|
"reportOptionalSubscript": "error",
|
|
"reportOptionalMemberAccess": "error",
|
|
"reportOptionalCall": "error",
|
|
"reportOptionalIterable": "error",
|
|
"reportOptionalContextManager": "error",
|
|
"reportOptionalOperand": "error",
|
|
"reportUntypedFunctionDecorator": "error",
|
|
"reportUntypedClassDecorator": "error",
|
|
"reportUntypedBaseClass": "error",
|
|
"reportUntypedNamedTuple": "error",
|
|
"reportPrivateUsage": "error",
|
|
"reportConstantRedefinition": "error",
|
|
"reportIncompatibleMethodOverride": "error",
|
|
"reportIncompatibleVariableOverride": "error",
|
|
"reportInvalidStringEscapeSequence": "error",
|
|
"reportUnknownParameterType": "error",
|
|
"reportUnknownArgumentType": "error",
|
|
"reportUnknownLambdaType": "error",
|
|
"reportUnknownVariableType": "error",
|
|
"reportUnknownMemberType": "error",
|
|
"reportMissingTypeArgument": "error",
|
|
"reportUndefinedVariable": "error",
|
|
"reportUnboundVariable": "error",
|
|
"reportInvalidStubStatement": "error",
|
|
"reportUnsupportedDunderAll": "error",
|
|
"reportInvalidTypeVarUse": "error",
|
|
"reportPropertyTypeMismatch": "error",
|
|
"reportSelfClsParameterName": "error",
|
|
// Overlapping overloads cannot be enabled at this time because
|
|
// of the "factions.Fraction.__pow__" method and "tasks.gather" function.
|
|
// Mypy's overlapping overload logic misses these issues (see mypy
|
|
// issue #10143 and #10157).
|
|
"reportOverlappingOverload": "none"
|
|
}
|