diff --git a/package-lock.json b/package-lock.json index 5a260b4..c61ece2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "coc-pyright", - "version": "1.1.385", + "version": "1.1.390", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coc-pyright", - "version": "1.1.385", + "version": "1.1.390", "license": "MIT", "dependencies": { - "pyright": "^1.1.385" + "pyright": "^1.1.390" }, "devDependencies": { "@biomejs/biome": "^1.8.3", @@ -18,7 +18,7 @@ "@types/minimatch": "^5.1.2", "@types/node": "16", "@types/which": "^3.0.4", - "@zzzen/pyright-internal": "^1.2.0-dev.20241020", + "@zzzen/pyright-internal": "^1.2.0-dev.20241201", "coc.nvim": "^0.0.83-next.18", "diff-match-patch": "^1.0.5", "esbuild": "^0.24.0", @@ -1101,9 +1101,10 @@ } }, "node_modules/pyright": { - "version": "1.1.389", - "resolved": "https://registry.npmjs.org/pyright/-/pyright-1.1.389.tgz", - "integrity": "sha512-EYt7yRtG6R6I3C3Wfa6O4tOPnbnN7e3ZG4BF9ZiyY6xs1hJGq2ymINyuWC+da0hPNebuMGkY7vvCnD+R7wwbdg==", + "version": "1.1.390", + "resolved": "https://registry.npmjs.org/pyright/-/pyright-1.1.390.tgz", + "integrity": "sha512-dyt10l7TjuasVMCY4L6k8xggpp8X7dR4Mq/zsaA5Usa2pqBkZ+g73vs0mc8ungsyPhCDWz8rMdQjsAeMuKgciw==", + "license": "MIT", "bin": { "pyright": "index.js", "pyright-langserver": "langserver.index.js" diff --git a/package.json b/package.json index a25bd04..9cb4cf7 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,11 @@ { "name": "coc-pyright", - "version": "1.1.385", + "version": "1.1.390", "description": "Pyright extension for coc.nvim, static type checker for Python", "author": "Heyward Fann ", "license": "MIT", "main": "lib/index.js", - "keywords": [ - "coc.nvim", - "python", - "pyright" - ], + "keywords": ["coc.nvim", "python", "pyright"], "engines": { "coc": "^0.0.80" }, @@ -29,7 +25,7 @@ ], "scripts": { "schema": "node diff.mjs", - "lint": "biome check src", + "lint": "biome check package.json src", "build": "node esbuild.mjs", "prepare": "node esbuild.mjs" }, @@ -40,7 +36,7 @@ "@types/minimatch": "^5.1.2", "@types/node": "16", "@types/which": "^3.0.4", - "@zzzen/pyright-internal": "^1.2.0-dev.20241020", + "@zzzen/pyright-internal": "^1.2.0-dev.20241201", "coc.nvim": "^0.0.83-next.18", "diff-match-patch": "^1.0.5", "esbuild": "^0.24.0", @@ -152,10 +148,7 @@ "python.analysis.diagnosticMode": { "type": "string", "default": "openFilesOnly", - "enum": [ - "openFilesOnly", - "workspace" - ], + "enum": ["openFilesOnly", "workspace"], "enumDescriptions": [ "Analyzes and reports errors on only open files.", "Analyzes and reports errors on all files in the workspace." @@ -195,1300 +188,490 @@ "scope": "resource", "properties": { "reportGeneralTypeIssues": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for general type inconsistencies, unsupported operations, argument/parameter mismatches, etc. Covers all of the basic type-checking rules not covered by other rules. Does not include syntax errors.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportPropertyTypeMismatch": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for property whose setter and getter have mismatched types.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportFunctionMemberAccess": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for member accesses on functions.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportMissingImports": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for imports that have no corresponding imported python file or type stub file.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportMissingModuleSource": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for imports that have no corresponding source file. This happens when a type stub is found, but the module source file was not found, indicating that the code may fail at runtime when using this execution environment. Type checking will be done using the type stub.", "default": "warning", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportInvalidTypeForm": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for type expression that uses an invalid form.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportMissingTypeStubs": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for imports that have no corresponding type stub file (either a typeshed file or a custom type stub). The type checker requires type stubs to do its best job at analysis.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportImportCycles": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for cyclical import chains. These are not errors in Python, but they do slow down type analysis and often hint at architectural layering issues. Generally, they should be avoided.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnusedImport": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for an imported symbol that is not referenced within that file.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnusedClass": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for a class with a private name (starting with an underscore) that is not accessed.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnusedFunction": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for a function or method with a private name (starting with an underscore) that is not accessed.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnusedVariable": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for a variable that is not accessed.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportDuplicateImport": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for an imported symbol or module that is imported more than once.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportWildcardImportFromLibrary": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for an wildcard import from an external library.", "default": "warning", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportAbstractUsage": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for an attempt to instantiate an abstract or protocol class or use an abstract method.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportArgumentType": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for a type incompatibility for an argument to a call.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportAssertTypeFailure": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for a type incompatibility detected by a typing.assert_type call.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportAssignmentType": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for type incompatibilities for assignments.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportAttributeAccessIssue": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for issues involving attribute accesses.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportCallIssue": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for issues involving call expressions and arguments.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportInconsistentOverload": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for inconsistencies between function overload signatures and implementation.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportIndexIssue": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics related to index operations and expressions.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportInvalidTypeArguments": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for invalid type argument usage.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportNoOverloadImplementation": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for an overloaded function or method with a missing implementation.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportOperatorIssue": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for related to unary or binary operators.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportOptionalSubscript": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for an attempt to subscript (index) a variable with an Optional type.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportOptionalMemberAccess": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for an attempt to access a member of a variable with an Optional type.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportOptionalCall": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for an attempt to call a variable with an Optional type.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportOptionalIterable": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for an attempt to use an Optional type as an iterable value (e.g. within a for statement).", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportOptionalContextManager": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for an attempt to use an Optional type as a context manager (as a parameter to a with statement).", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportOptionalOperand": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for an attempt to use an Optional type as an operand to a binary or unary operator (like '+', '==', 'or', 'not').", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportRedeclaration": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for an attempt to declare the type of a symbol multiple times.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportReturnType": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics related to function return type compatibility.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportTypedDictNotRequiredAccess": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for an attempt to access a non-required key within a TypedDict without a check for its presence.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUntypedFunctionDecorator": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for function decorators that have no type annotations. These obscure the function type, defeating many type analysis features.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUntypedClassDecorator": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for class decorators that have no type annotations. These obscure the class type, defeating many type analysis features.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUntypedBaseClass": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for base classes whose type cannot be determined statically. These obscure the class type, defeating many type analysis features.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUntypedNamedTuple": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics when “namedtuple” is used rather than “NamedTuple”. The former contains no type information, whereas the latter does.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportPrivateUsage": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for incorrect usage of private or protected variables or functions. Protected class members begin with a single underscore _ and can be accessed only by subclasses. Private class members begin with a double underscore but do not end in a double underscore and can be accessed only within the declaring class. Variables and functions declared outside of a class are considered private if their names start with either a single or double underscore, and they cannot be accessed outside of the declaring module.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportTypeCommentUsage": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for usage of deprecated type comments.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportPrivateImportUsage": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for incorrect usage of symbol imported from a \"py.typed\" module that is not re-exported from that module.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportConstantRedefinition": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for attempts to redefine variables whose names are all-caps with underscores and numerals.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportDeprecated": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for use of deprecated classes or functions.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportIncompatibleMethodOverride": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for methods that override a method of the same name in a base class in an incompatible manner (wrong number of parameters, incompatible parameter types, or incompatible return type).", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportIncompatibleVariableOverride": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for overrides in subclasses that redefine a variable in an incompatible way.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportInconsistentConstructor": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for __init__ and __new__ methods whose signatures are inconsistent.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportOverlappingOverload": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for function overloads that overlap in signature and obscure each other or have incompatible return types.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportPossiblyUnboundVariable": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for the use of variables that may be unbound on some code paths.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportMissingSuperCall": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for missing call to parent class for inherited `__init__` methods.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUninitializedInstanceVariable": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for instance variables that are not declared or initialized within class body or `__init__` method.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportInvalidStringEscapeSequence": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for invalid escape sequences used within string literals. The Python specification indicates that such sequences will generate a syntax error in future versions.", "default": "warning", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnknownParameterType": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for input or return parameters for functions or methods that have an unknown type.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnknownArgumentType": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for call arguments for functions or methods that have an unknown type.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnknownLambdaType": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for input or return parameters for lambdas that have an unknown type.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnknownVariableType": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for variables that have an unknown type..", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnknownMemberType": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for class or instance variables that have an unknown type.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportMissingParameterType": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for parameters that are missing a type annotation.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportMissingTypeArgument": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for generic class reference with missing type arguments.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportInvalidTypeVarUse": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for improper use of type variables in a function signature.", "default": "warning", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportCallInDefaultInitializer": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for function calls within a default value initialization expression. Such calls can mask expensive operations that are performed at module initialization time.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnnecessaryIsInstance": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for 'isinstance' or 'issubclass' calls where the result is statically determined to be always true. Such calls are often indicative of a programming error.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnnecessaryCast": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for 'cast' calls that are statically determined to be unnecessary. Such calls are sometimes indicative of a programming error.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnnecessaryComparison": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for '==' and '!=' comparisons that are statically determined to be unnecessary. Such calls are sometimes indicative of a programming error.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnnecessaryContains": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for 'in' operation that is statically determined to be unnecessary. Such operations are sometimes indicative of a programming error.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportAssertAlwaysTrue": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for 'assert' statement that will provably always assert. This can be indicative of a programming error.", "default": "warning", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportSelfClsParameterName": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for a missing or misnamed “self” parameter in instance methods and “cls” parameter in class methods. Instance methods in metaclasses (classes that derive from “type”) are allowed to use “cls” for instance methods.", "default": "warning", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportImplicitStringConcatenation": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for two or more string literals that follow each other, indicating an implicit concatenation. This is considered a bad practice and often masks bugs such as missing commas.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportInvalidStubStatement": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for type stub statements that do not conform to PEP 484.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportIncompleteStub": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for the use of a module-level “__getattr__” function, indicating that the stub is incomplete.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUndefinedVariable": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for undefined variables.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnboundVariable": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for the use of unbound variables.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnhashable": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for the use of an unhashable object in a container that requires hashability.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnsupportedDunderAll": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for unsupported operations performed on __all__.", "default": "warning", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnusedCallResult": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for call expressions whose results are not consumed and are not None.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnusedCoroutine": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for call expressions that return a Coroutine and whose results are not consumed.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnusedExcept": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for unreachable except clause.", "default": "error", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnusedExpression": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for simple expressions whose value is not used in any way.", "default": "warning", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportUnnecessaryTypeIgnoreComment": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for '# type: ignore' comments that have no effect.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportMatchNotExhaustive": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for 'match' statements that do not exhaustively match all possible values.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportShadowedImports": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for files that are overriding a module in the stdlib.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] }, "reportImplicitOverride": { - "type": [ - "string", - "boolean" - ], + "type": ["string", "boolean"], "description": "Diagnostics for overridden methods that do not include an `@override` decorator.", "default": "none", - "enum": [ - "none", - "information", - "warning", - "error", - true, - false - ] + "enum": ["none", "information", "warning", "error", true, false] } } }, @@ -1496,22 +679,12 @@ "type": "string", "default": "Information", "description": "Specifies the level of logging for the Output panel", - "enum": [ - "Error", - "Warning", - "Information", - "Trace" - ] + "enum": ["Error", "Warning", "Information", "Trace"] }, "python.analysis.typeCheckingMode": { "type": "string", "default": "standard", - "enum": [ - "off", - "basic", - "standard", - "strict" - ], + "enum": ["off", "basic", "standard", "strict"], "description": "Defines the default rule set for type checking.", "scope": "resource" }, @@ -1540,36 +713,21 @@ "type": "string", "default": "Error", "description": "Severity of Flake8 message type 'E'.", - "enum": [ - "Hint", - "Error", - "Information", - "Warning" - ], + "enum": ["Hint", "Error", "Information", "Warning"], "scope": "resource" }, "python.linting.flake8CategorySeverity.F": { "type": "string", "default": "Error", "description": "Severity of Flake8 message type 'F'.", - "enum": [ - "Hint", - "Error", - "Information", - "Warning" - ], + "enum": ["Hint", "Error", "Information", "Warning"], "scope": "resource" }, "python.linting.flake8CategorySeverity.W": { "type": "string", "default": "Warning", "description": "Severity of Flake8 message type 'W'.", - "enum": [ - "Hint", - "Error", - "Information", - "Warning" - ], + "enum": ["Hint", "Error", "Information", "Warning"], "scope": "resource" }, "python.linting.flake8Enabled": { @@ -1593,10 +751,7 @@ "python.linting.ignorePatterns": { "type": "array", "description": "Patterns used to exclude files or folders from being linted.", - "default": [ - ".vscode/*.py", - "**/site-packages/**/*.py" - ], + "default": [".vscode/*.py", "**/site-packages/**/*.py"], "items": { "type": "string" }, @@ -1638,12 +793,7 @@ "python.linting.mypyArgs": { "type": "array", "description": "Arguments passed in. Each argument is a separate item in the array.", - "default": [ - "--no-pretty", - "--ignore-missing-imports", - "--follow-imports=silent", - "--show-column-numbers" - ], + "default": ["--no-pretty", "--ignore-missing-imports", "--follow-imports=silent", "--show-column-numbers"], "items": { "type": "string" }, @@ -1653,24 +803,14 @@ "type": "string", "default": "Error", "description": "Severity of Mypy message type 'Error'.", - "enum": [ - "Hint", - "Error", - "Information", - "Warning" - ], + "enum": ["Hint", "Error", "Information", "Warning"], "scope": "resource" }, "python.linting.mypyCategorySeverity.note": { "type": "string", "default": "Information", "description": "Severity of Mypy message type 'Note'.", - "enum": [ - "Hint", - "Error", - "Information", - "Warning" - ], + "enum": ["Hint", "Error", "Information", "Warning"], "scope": "resource" }, "python.linting.mypyEnabled": { @@ -1719,24 +859,14 @@ "type": "string", "default": "Error", "description": "Severity of pycodestyle message type 'E'.", - "enum": [ - "Hint", - "Error", - "Information", - "Warning" - ], + "enum": ["Hint", "Error", "Information", "Warning"], "scope": "resource" }, "python.linting.pycodestyleCategorySeverity.W": { "type": "string", "default": "Warning", "description": "Severity of pycodestyle message type 'W'.", - "enum": [ - "Hint", - "Error", - "Information", - "Warning" - ], + "enum": ["Hint", "Error", "Information", "Warning"], "scope": "resource" }, "python.linting.pycodestyleEnabled": { @@ -1866,60 +996,35 @@ "type": "string", "default": "Information", "description": "Severity of Pylint message type 'Convention/C'.", - "enum": [ - "Hint", - "Error", - "Information", - "Warning" - ], + "enum": ["Hint", "Error", "Information", "Warning"], "scope": "resource" }, "python.linting.pylintCategorySeverity.error": { "type": "string", "default": "Error", "description": "Severity of Pylint message type 'Error/E'.", - "enum": [ - "Hint", - "Error", - "Information", - "Warning" - ], + "enum": ["Hint", "Error", "Information", "Warning"], "scope": "resource" }, "python.linting.pylintCategorySeverity.fatal": { "type": "string", "default": "Error", "description": "Severity of Pylint message type 'Fatal/F'.", - "enum": [ - "Hint", - "Error", - "Information", - "Warning" - ], + "enum": ["Hint", "Error", "Information", "Warning"], "scope": "resource" }, "python.linting.pylintCategorySeverity.refactor": { "type": "string", "default": "Hint", "description": "Severity of Pylint message type 'Refactor/R'.", - "enum": [ - "Hint", - "Error", - "Information", - "Warning" - ], + "enum": ["Hint", "Error", "Information", "Warning"], "scope": "resource" }, "python.linting.pylintCategorySeverity.warning": { "type": "string", "default": "Warning", "description": "Severity of Pylint message type 'Warning/W'.", - "enum": [ - "Hint", - "Error", - "Information", - "Warning" - ], + "enum": ["Hint", "Error", "Information", "Warning"], "scope": "resource" }, "python.linting.pylintStdin": { @@ -2064,16 +1169,7 @@ "type": "string", "default": "autopep8", "description": "Provider for formatting.", - "enum": [ - "autopep8", - "darker", - "black", - "pyink", - "blackd", - "yapf", - "ruff", - "none" - ], + "enum": ["autopep8", "darker", "black", "pyink", "blackd", "yapf", "ruff", "none"], "scope": "resource" }, "python.sortImports.path": { @@ -2131,11 +1227,7 @@ "type": "string", "default": "pyright", "description": "Organize imports provider", - "enum": [ - "pyright", - "ruff", - "isort" - ] + "enum": ["pyright", "ruff", "isort"] }, "pyright.server": { "type": "string", @@ -2145,10 +1237,7 @@ "pyright.testing.provider": { "type": "string", "default": "unittest", - "enum": [ - "unittest", - "pytest" - ], + "enum": ["unittest", "pytest"], "description": "Provider for testing, supports 'unittest' and 'pytest'." }, "pyright.testing.pytestArgs": { @@ -2170,16 +1259,8 @@ "pyright.trace.server": { "type": "string", "scope": "window", - "enum": [ - "off", - "messages", - "verbose" - ], - "enumDescriptions": [ - "No traces", - "Error only", - "Full log" - ], + "enum": ["off", "messages", "verbose"], + "enumDescriptions": ["No traces", "Error only", "Full log"], "default": "off", "description": "Trace requests to Pyright" } @@ -2229,6 +1310,6 @@ ] }, "dependencies": { - "pyright": "^1.1.385" + "pyright": "^1.1.390" } }