mirror of
https://github.com/1j01/textual-paint.git
synced 2024-10-27 01:41:29 +03:00
Disable reportUnknownMemberType Pyright error
This commit is contained in:
parent
f50aef18e7
commit
6f5cee0f7c
@ -39,6 +39,7 @@
|
||||
"disambiguates",
|
||||
"dockable",
|
||||
"domtree",
|
||||
"Dunder",
|
||||
"emacsclient",
|
||||
"executablepath",
|
||||
"Figlet",
|
||||
|
@ -9,7 +9,88 @@
|
||||
"**/.*"
|
||||
],
|
||||
"strict": [
|
||||
"**/*.py"
|
||||
// "**/*.py"
|
||||
],
|
||||
"reportOptionalMemberAccess": false
|
||||
|
||||
// CUSTOMIZATIONS
|
||||
"reportOptionalMemberAccess": "warning",
|
||||
// reportUnknownMemberType caused numerous bogus errors,
|
||||
// with Textual's generic App[ResultType] and Screen[ScreenResultType] classes.
|
||||
"reportUnknownMemberType": false,
|
||||
|
||||
// STRICT PROFILE
|
||||
// As far as I know, there's no way to inherit from strict and then loosen any rules,
|
||||
// so I've copied from the table and am commenting out the ones I want to change.
|
||||
// https://github.com/microsoft/pyright/blob/2a096860c11dff7bbda92f92efb0216e2580c2c6/docs/configuration.md#diagnostic-rule-defaults
|
||||
// > In strict type checking mode, overrides may only increase the severity level (e.g. from "warning" to "error").
|
||||
"strictListInference": true,
|
||||
"strictDictionaryInference": true,
|
||||
"strictSetInference": true,
|
||||
"analyzeUnannotatedFunctions": true,
|
||||
"strictParameterNoneValue": true,
|
||||
"enableTypeIgnoreComments": true,
|
||||
"reportMissingModuleSource": "warning",
|
||||
"reportMissingImports": "error",
|
||||
"reportUndefinedVariable": "error",
|
||||
"reportAssertAlwaysTrue": "error",
|
||||
"reportInvalidStringEscapeSequence": "error",
|
||||
"reportInvalidTypeVarUse": "error",
|
||||
"reportMissingTypeStubs": "error",
|
||||
"reportSelfClsParameterName": "error",
|
||||
"reportUnsupportedDunderAll": "error",
|
||||
"reportUnusedExpression": "error",
|
||||
"reportWildcardImportFromLibrary": "error",
|
||||
"reportGeneralTypeIssues": "error",
|
||||
"reportOptionalSubscript": "error",
|
||||
// "reportOptionalMemberAccess": "error",
|
||||
"reportOptionalCall": "error",
|
||||
"reportOptionalIterable": "error",
|
||||
"reportOptionalContextManager": "error",
|
||||
"reportOptionalOperand": "error",
|
||||
"reportTypedDictNotRequiredAccess": "error",
|
||||
"reportPrivateImportUsage": "error",
|
||||
"reportUnboundVariable": "error",
|
||||
"reportUnusedCoroutine": "error",
|
||||
"reportConstantRedefinition": "error",
|
||||
"reportDeprecated": "error",
|
||||
"reportDuplicateImport": "error",
|
||||
"reportFunctionMemberAccess": "error",
|
||||
"reportIncompatibleMethodOverride": "error",
|
||||
"reportIncompatibleVariableOverride": "error",
|
||||
"reportIncompleteStub": "error",
|
||||
"reportInconsistentConstructor": "error",
|
||||
"reportInvalidStubStatement": "error",
|
||||
"reportMatchNotExhaustive": "error",
|
||||
"reportMissingParameterType": "error",
|
||||
"reportMissingTypeArgument": "error",
|
||||
"reportOverlappingOverload": "error",
|
||||
"reportPrivateUsage": "error",
|
||||
"reportTypeCommentUsage": "error",
|
||||
"reportUnknownArgumentType": "error",
|
||||
"reportUnknownLambdaType": "error",
|
||||
// "reportUnknownMemberType": "error",
|
||||
"reportUnknownParameterType": "error",
|
||||
"reportUnknownVariableType": "error",
|
||||
"reportUnnecessaryCast": "error",
|
||||
"reportUnnecessaryComparison": "error",
|
||||
"reportUnnecessaryContains": "error",
|
||||
"reportUnnecessaryIsInstance": "error",
|
||||
"reportUnusedClass": "error",
|
||||
"reportUnusedImport": "error",
|
||||
"reportUnusedFunction": "error",
|
||||
"reportUnusedVariable": "error",
|
||||
"reportUntypedBaseClass": "error",
|
||||
"reportUntypedClassDecorator": "error",
|
||||
"reportUntypedFunctionDecorator": "error",
|
||||
"reportUntypedNamedTuple": "error",
|
||||
"reportCallInDefaultInitializer": "none",
|
||||
"reportImplicitOverride": "none",
|
||||
"reportImplicitStringConcatenation": "none",
|
||||
"reportImportCycles": "none",
|
||||
"reportMissingSuperCall": "none",
|
||||
"reportPropertyTypeMismatch": "none",
|
||||
"reportShadowedImports": "none",
|
||||
"reportUninitializedInstanceVariable": "none",
|
||||
"reportUnnecessaryTypeIgnoreComment": "none",
|
||||
"reportUnusedCallResult": "none",
|
||||
}
|
Loading…
Reference in New Issue
Block a user