coc-pyright 1.1.330 → 1.1.331
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +415 -339
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -13876,7 +13876,7 @@ var require_pythonVersion = __commonJS({
|
|
|
13876
13876
|
PythonVersion2[PythonVersion2["V3_12"] = 780] = "V3_12";
|
|
13877
13877
|
PythonVersion2[PythonVersion2["V3_13"] = 781] = "V3_13";
|
|
13878
13878
|
})(PythonVersion = exports.PythonVersion || (exports.PythonVersion = {}));
|
|
13879
|
-
exports.latestStablePythonVersion = PythonVersion.
|
|
13879
|
+
exports.latestStablePythonVersion = PythonVersion.V3_12;
|
|
13880
13880
|
function versionToString(version) {
|
|
13881
13881
|
const majorVersion = version >> 8 & 255;
|
|
13882
13882
|
const minorVersion = version & 255;
|
|
@@ -18544,8 +18544,8 @@ var require_parseTreeUtils = __commonJS({
|
|
|
18544
18544
|
return result;
|
|
18545
18545
|
};
|
|
18546
18546
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18547
|
-
exports.
|
|
18548
|
-
exports.getTypeVarScopesForNode = exports.getScopeIdForNode = exports.getVariableDocStringNode = exports.operatorSupportsChaining = exports.isValidLocationForFutureImport = exports.isUnannotatedFunction = exports.isBlankLine = exports.getFullStatementRange = exports.getStringValueRange = exports.getStringNodeValueRange = exports.isLastNameOfDottedName = exports.isFirstNameOfDottedName = exports.getFirstNameOfDottedName = exports.getDottedName = exports.getDecoratorName = exports.getDottedNameWithGivenNodeAsLastName = exports.getFirstAncestorOrSelf = exports.getFirstAncestorOrSelfOfKind = exports.isLastNameOfModuleName = exports.isFromImportAlias = exports.isFromImportName = exports.isFromImportModuleName = exports.isImportAlias = exports.isImportModuleName = exports.getTypeAnnotationForParameter = exports.isFunctionSuiteEmpty = exports.getFileInfoFromNode = exports.getModuleNode = exports.isWriteAccess = exports.printParseNodeType = exports.getTokenOverlapping = exports.getTokenAt = exports.getTokenAtIndex = exports.isWhitespace = exports.getTokenAtLeft = void 0;
|
|
18547
|
+
exports.getCallNodeAndActiveParameterIndex = exports.getEnclosingParameter = exports.CallNodeWalker = exports.NameNodeWalker = exports.isAssignmentToDefaultsFollowingNamedTuple = exports.isDocString = exports.getDocString = exports.isWithinAssertExpression = exports.isWithinTryBlock = exports.isWithinLoop = exports.isWithinAnnotationComment = exports.isWithinTypeAnnotation = exports.isWithinDefaultParamInitializer = exports.isPartialMatchingExpression = exports.isMatchingExpression = exports.containsAwaitNode = exports.isSuiteEmpty = exports.isNodeContainedWithinNodeType = exports.getParentAnnotationNode = exports.getParentNodeOfType = exports.isNodeContainedWithin = exports.isRequiredAllowedForAssignmentTarget = exports.isClassVarAllowedForAssignmentTarget = exports.isFinalAllowedForAssignmentTarget = exports.getTypeAnnotationNode = exports.getExecutionScopeNode = exports.getTypeVarScopeNode = exports.getEvaluationScopeNode = exports.getEvaluationNodeForAssignmentExpression = exports.getEnclosingSuiteOrModule = exports.getEnclosingClassOrFunction = exports.getEnclosingLambda = exports.getEnclosingFunctionEvaluationScope = exports.getEnclosingFunction = exports.getEnclosingClassOrModule = exports.getEnclosingModule = exports.getEnclosingClass = exports.getEnclosingSuite = exports.getDecoratorForName = exports.getCallForName = exports.printOperator = exports.printExpression = exports.printArgument = exports.getTypeSourceId = exports.getClassFullName = exports.isCompliantWithNodeRangeRules = exports.findNodeByOffset = exports.findNodeByPosition = exports.getNodeDepth = exports.PrintExpressionFlags = void 0;
|
|
18548
|
+
exports.getTypeVarScopesForNode = exports.getScopeIdForNode = exports.getVariableDocStringNode = exports.operatorSupportsChaining = exports.isValidLocationForFutureImport = exports.isUnannotatedFunction = exports.isBlankLine = exports.getFullStatementRange = exports.getStringValueRange = exports.getStringNodeValueRange = exports.isLastNameOfDottedName = exports.isFirstNameOfDottedName = exports.getFirstNameOfDottedName = exports.getDottedName = exports.getDecoratorName = exports.getDottedNameWithGivenNodeAsLastName = exports.getFirstAncestorOrSelf = exports.getFirstAncestorOrSelfOfKind = exports.isLastNameOfModuleName = exports.isFromImportAlias = exports.isFromImportName = exports.isFromImportModuleName = exports.isImportAlias = exports.isImportModuleName = exports.getTypeAnnotationForParameter = exports.isFunctionSuiteEmpty = exports.getFileInfoFromNode = exports.getModuleNode = exports.isWriteAccess = exports.printParseNodeType = exports.getTokenOverlapping = exports.getTokenAt = exports.getTokenAtIndex = exports.isWhitespace = exports.getTokenAtLeft = exports.getTokenIndexAtLeft = void 0;
|
|
18549
18549
|
var AnalyzerNodeInfo = __importStar(require_analyzerNodeInfo());
|
|
18550
18550
|
var core_1 = require_core();
|
|
18551
18551
|
var debug_1 = require_debug2();
|
|
@@ -19135,6 +19135,20 @@ var require_parseTreeUtils = __commonJS({
|
|
|
19135
19135
|
return void 0;
|
|
19136
19136
|
}
|
|
19137
19137
|
exports.getEnclosingFunction = getEnclosingFunction;
|
|
19138
|
+
function getEnclosingFunctionEvaluationScope(node) {
|
|
19139
|
+
let curNode = getEvaluationScopeNode(node);
|
|
19140
|
+
while (curNode) {
|
|
19141
|
+
if (curNode.nodeType === 28) {
|
|
19142
|
+
return curNode;
|
|
19143
|
+
}
|
|
19144
|
+
if (curNode.nodeType === 10 || !curNode.parent) {
|
|
19145
|
+
return void 0;
|
|
19146
|
+
}
|
|
19147
|
+
curNode = getEvaluationScopeNode(curNode.parent);
|
|
19148
|
+
}
|
|
19149
|
+
return void 0;
|
|
19150
|
+
}
|
|
19151
|
+
exports.getEnclosingFunctionEvaluationScope = getEnclosingFunctionEvaluationScope;
|
|
19138
19152
|
function getEnclosingLambda(node) {
|
|
19139
19153
|
let curNode = node.parent;
|
|
19140
19154
|
while (curNode) {
|
|
@@ -21721,6 +21735,9 @@ var require_types = __commonJS({
|
|
|
21721
21735
|
if (!newFunction.details.paramSpec) {
|
|
21722
21736
|
newFunction.details.paramSpec = paramSpec;
|
|
21723
21737
|
}
|
|
21738
|
+
if (type.inferredReturnType) {
|
|
21739
|
+
newFunction.inferredReturnType = type.inferredReturnType;
|
|
21740
|
+
}
|
|
21724
21741
|
return newFunction;
|
|
21725
21742
|
}
|
|
21726
21743
|
FunctionType2.cloneRemoveParamSpecVariadics = cloneRemoveParamSpecVariadics;
|
|
@@ -25543,7 +25560,11 @@ var require_typeUtils = __commonJS({
|
|
|
25543
25560
|
if (argsParam.category !== 1 || kwargsParam.category !== 2 || !(0, types_1.isParamSpec)(argsParam.type) || !(0, types_1.isParamSpec)(kwargsParam.type) || !(0, types_1.isTypeSame)(argsParam.type, kwargsParam.type)) {
|
|
25544
25561
|
return type;
|
|
25545
25562
|
}
|
|
25546
|
-
return types_1.FunctionType.cloneRemoveParamSpecVariadics(type,
|
|
25563
|
+
return types_1.FunctionType.cloneRemoveParamSpecVariadics(type, types_1.TypeVarType.cloneForParamSpecAccess(
|
|
25564
|
+
argsParam.type,
|
|
25565
|
+
/* access */
|
|
25566
|
+
void 0
|
|
25567
|
+
));
|
|
25547
25568
|
}
|
|
25548
25569
|
exports.removeParamSpecVariadicsFromFunction = removeParamSpecVariadicsFromFunction;
|
|
25549
25570
|
function _expandVariadicUnpackedUnion(type) {
|
|
@@ -27524,6 +27545,7 @@ var require_package_nls_cs = __commonJS({
|
|
|
27524
27545
|
classMethodClsParam: "Metody t\u0159\xEDdy by m\u011Bly m\xEDt parametr \u201Ecls\u201C",
|
|
27525
27546
|
classNotRuntimeSubscriptable: "Doln\xED index pro t\u0159\xEDdu {name} vygeneruje v\xFDjimku modulu runtime; anotaci typu uzav\u0159ete do uvozovek",
|
|
27526
27547
|
classPatternBuiltInArgPositional: "Vzor t\u0159\xEDdy p\u0159ij\xEDm\xE1 pouze pozi\u010Dn\xED d\xEDl\u010D\xED vzor",
|
|
27548
|
+
classPatternPositionalArgCount: 'P\u0159\xEDli\u0161 mnoho pozi\u010Dn\xEDch vzor\u016F pro t\u0159\xEDdu "{type}"; o\u010Dek\xE1valo se {expected}, ale p\u0159ijalo se {received}',
|
|
27527
27549
|
classPatternTypeAlias: "Typ \u201E{type}\u201C nelze pou\u017E\xEDt ve vzorci t\u0159\xEDdy, proto\u017Ee se jedn\xE1 o specializovan\xFD alias typu",
|
|
27528
27550
|
classTypeParametersIllegal: "Syntaxe parametru typu t\u0159\xEDdy vy\u017Eaduje Python 312 nebo nov\u011Bj\u0161\xED",
|
|
27529
27551
|
classVarFirstArgMissing: "Za ClassVar byl o\u010Dek\xE1v\xE1n argument typu",
|
|
@@ -28055,6 +28077,7 @@ var require_package_nls_cs = __commonJS({
|
|
|
28055
28077
|
baseClassIncompatibleSubclass: "Z\xE1kladn\xED t\u0159\xEDda {baseClass} je odvozen\xE1 od t\u0159\xEDdy {subclass}, kter\xE1 nen\xED kompatibiln\xED s typem {type}",
|
|
28056
28078
|
baseClassOverriddenType: "Z\xE1kladn\xED t\u0159\xEDda {baseClass} poskytuje typ {type}, kter\xFD je p\u0159eps\xE1n",
|
|
28057
28079
|
baseClassOverridesType: "Z\xE1kladn\xED t\u0159\xEDda \u201E{baseClass}\u201C p\u0159episuje typ \u201E{type}\u201C",
|
|
28080
|
+
bytesTypePromotions: "Pokud chcete povolit chov\xE1n\xED pov\xFD\u0161en\xED typu pro \u201Ebytearray\u201C a \u201Ememoryview\u201C, nastavte disableBytesTypePromotions na false",
|
|
28058
28081
|
conditionalRequiresBool: "Metoda __bool__ pro typ {operandType} vrac\xED typ {boolReturnType} m\xEDsto bool",
|
|
28059
28082
|
dataClassFieldLocation: "Deklarace pole",
|
|
28060
28083
|
dataClassFrozen: "{name} je zablokovan\xE9",
|
|
@@ -28069,6 +28092,8 @@ var require_package_nls_cs = __commonJS({
|
|
|
28069
28092
|
incompatibleSetter: "Metoda setter vlastnosti je nekompatibiln\xED",
|
|
28070
28093
|
initMethodLocation: "Metoda __init__ je definov\xE1na ve t\u0159\xEDd\u011B {type}",
|
|
28071
28094
|
initMethodSignature: "Podpis __init__ je {type}",
|
|
28095
|
+
invariantSuggestionDict: "Zva\u017Ete p\u0159epnut\xED z \u201Ediktov\xE1n\xED\u201C na \u201Emapov\xE1n\xED\u201C, kter\xE9 je v typu hodnoty kovariantn\xED",
|
|
28096
|
+
invariantSuggestionList: "Zva\u017Ete p\u0159epnut\xED ze \u201Eseznamu\u201C na \u201Esekvenci\u201C, kter\xE1 je kovavariantn\xED",
|
|
28072
28097
|
keyNotRequired: "\u201E{name}! nen\xED v typu \u201E{type}\u201C povinn\xFD kl\xED\u010D, tak\u017Ee p\u0159\xEDstup m\u016F\u017Ee v\xE9st k v\xFDjimce modulu runtime",
|
|
28073
28098
|
keyReadOnly: "{name} je kl\xED\u010D jen pro \u010Dten\xED v {type}",
|
|
28074
28099
|
keyRequiredDeleted: "{name} je povinn\xFD kl\xED\u010D a ned\xE1 se odstranit",
|
|
@@ -28263,6 +28288,7 @@ var require_package_nls_de = __commonJS({
|
|
|
28263
28288
|
classMethodClsParam: 'Klassenmethoden sollten einen "cls"-Parameter verwenden.',
|
|
28264
28289
|
classNotRuntimeSubscriptable: 'Durch das Tiefstellungsskript f\xFCr die Klasse "{name}" wird eine Laufzeitausnahme generiert; schlie\xDFen Sie die Typanmerkung in Anf\xFChrungszeichen ein',
|
|
28265
28290
|
classPatternBuiltInArgPositional: "Das Klassenmuster akzeptiert nur positionsbezogenes Untermuster.",
|
|
28291
|
+
classPatternPositionalArgCount: 'Zu viele Positionsmuster f\xFCr Klasse "{type}". Erwartet: {expected}, empfangen: {received}.',
|
|
28266
28292
|
classPatternTypeAlias: '"{type}" kann nicht in einem Klassenmuster verwendet werden, da es sich um einen spezialisierten Typalias handelt.',
|
|
28267
28293
|
classTypeParametersIllegal: "Die Syntax des Klassentypparameters erfordert Python 3.12 oder h\xF6her.",
|
|
28268
28294
|
classVarFirstArgMissing: 'Nach "ClassVar" wurde ein Typargument erwartet.',
|
|
@@ -28794,6 +28820,7 @@ var require_package_nls_de = __commonJS({
|
|
|
28794
28820
|
baseClassIncompatibleSubclass: 'Die Basisklasse "{baseClass}" wird von "{subclass}" abgeleitet, die mit dem Typ "{type}" nicht kompatibel ist.',
|
|
28795
28821
|
baseClassOverriddenType: 'Die Basisklasse "{baseClass}" stellt einen Typ "{type}" bereit, der \xFCberschrieben wird.',
|
|
28796
28822
|
baseClassOverridesType: 'Basisklasse "{baseClass}" \xFCberschreibt mit Typ "{type}"',
|
|
28823
|
+
bytesTypePromotions: 'Legen Sie disableBytesTypePromotions auf FALSE fest, um das Typerweiterungsverhalten f\xFCr "bytearray" und "memoryview" zu aktivieren.',
|
|
28797
28824
|
conditionalRequiresBool: 'Die Methode __bool__ f\xFCr den Typ "{operandType}" gibt den Typ "{boolReturnType}" anstelle von "bool" zur\xFCck',
|
|
28798
28825
|
dataClassFieldLocation: "Felddeklaration",
|
|
28799
28826
|
dataClassFrozen: '"{name}" ist fixiert',
|
|
@@ -28808,6 +28835,8 @@ var require_package_nls_de = __commonJS({
|
|
|
28808
28835
|
incompatibleSetter: "Die Settermethode der Eigenschaft ist nicht kompatibel.",
|
|
28809
28836
|
initMethodLocation: 'Die __init__ Methode ist in der Klasse "{type}" definiert.',
|
|
28810
28837
|
initMethodSignature: 'Die Signatur von __init__ ist "{type}".',
|
|
28838
|
+
invariantSuggestionDict: 'Erw\xE4gen Sie den Wechsel von "dict" zu "Mapping" (im Werttyp covariant).',
|
|
28839
|
+
invariantSuggestionList: 'Erw\xE4gen Sie den Wechsel von "list" zu "Sequence" (covariant).',
|
|
28811
28840
|
keyNotRequired: '"{name}" ist kein erforderlicher Schl\xFCssel in "{type}". Der Zugriff kann daher zu einer Laufzeitausnahme f\xFChren.',
|
|
28812
28841
|
keyReadOnly: '"{name}" ist ein schreibgesch\xFCtzter Schl\xFCssel in "{type}"',
|
|
28813
28842
|
keyRequiredDeleted: '"{name}" ist ein erforderlicher Schl\xFCssel und kann nicht gel\xF6scht werden.',
|
|
@@ -29033,8 +29062,14 @@ var require_package_nls_en_us = __commonJS({
|
|
|
29033
29062
|
defaultValueNotAllowed: 'Parameter with "*" or "**" cannot have default value',
|
|
29034
29063
|
deprecatedClass: 'The class "{name}" is deprecated',
|
|
29035
29064
|
deprecatedConstructor: 'The constructor for class "{name}" is deprecated',
|
|
29065
|
+
deprecatedDescriptorDeleter: 'The "__delete__" method for descriptor "{name}" is deprecated',
|
|
29066
|
+
deprecatedDescriptorGetter: 'The "__get__" method for descriptor "{name}" is deprecated',
|
|
29067
|
+
deprecatedDescriptorSetter: 'The "__set__" method for descriptor "{name}" is deprecated',
|
|
29036
29068
|
deprecatedFunction: 'The function "{name}" is deprecated',
|
|
29037
29069
|
deprecatedMethod: 'The method "{name}" in class "{className}" is deprecated',
|
|
29070
|
+
deprecatedPropertyDeleter: 'The deleter for property "{name}" is deprecated',
|
|
29071
|
+
deprecatedPropertyGetter: 'The getter for property "{name}" is deprecated',
|
|
29072
|
+
deprecatedPropertySetter: 'The setter for property "{name}" is deprecated',
|
|
29038
29073
|
deprecatedType: 'This type is deprecated as of Python {version}; use "{replacement}" instead',
|
|
29039
29074
|
delTargetExpr: "Expression cannot be deleted",
|
|
29040
29075
|
dictExpandIllegalInComprehension: "Dictionary expansion not allowed in comprehension",
|
|
@@ -29567,6 +29602,7 @@ var require_package_nls_en_us = __commonJS({
|
|
|
29567
29602
|
newMethodSignature: 'Signature of __new__ is "{type}"',
|
|
29568
29603
|
noOverloadAssignable: 'No overloaded function matches type "{type}"',
|
|
29569
29604
|
orPatternMissingName: "Missing names: {name}",
|
|
29605
|
+
overloadIndex: "Overload {index} is the closest match",
|
|
29570
29606
|
overloadSignature: "Overload signature is defined here",
|
|
29571
29607
|
overloadNotAssignable: 'One or more overloads of "{name}" is not assignable',
|
|
29572
29608
|
overriddenMethod: "Overridden method",
|
|
@@ -29745,6 +29781,7 @@ var require_package_nls_es = __commonJS({
|
|
|
29745
29781
|
classMethodClsParam: 'Los m\xE9todos de clase deben tomar un par\xE1metro "cls"',
|
|
29746
29782
|
classNotRuntimeSubscriptable: 'El sub\xEDndice para la clase "{name}" generar\xE1 una excepci\xF3n en tiempo de ejecuci\xF3n; encierre la anotaci\xF3n de tipo entre comillas',
|
|
29747
29783
|
classPatternBuiltInArgPositional: "El patr\xF3n de clase solo acepta subpatrones posicionales",
|
|
29784
|
+
classPatternPositionalArgCount: 'Demasiados patrones posicionales para la clase "{type}"; esperado {expected} pero recibido {received}',
|
|
29748
29785
|
classPatternTypeAlias: '"{type}" no se puede usar en un patr\xF3n de clase porque es un alias de tipo especializado',
|
|
29749
29786
|
classTypeParametersIllegal: "La sintaxis de los par\xE1metros de tipo de clase requiere Python 3.12 o posterior.",
|
|
29750
29787
|
classVarFirstArgMissing: 'Se esperaba un argumento de tipo despu\xE9s de "ClassVar"',
|
|
@@ -30276,6 +30313,7 @@ var require_package_nls_es = __commonJS({
|
|
|
30276
30313
|
baseClassIncompatibleSubclass: 'La clase base "{baseClass}" deriva de "{subclass}", que no es compatible con el tipo "{type}"',
|
|
30277
30314
|
baseClassOverriddenType: 'La clase base "{baseClass}" proporciona el tipo "{type}", que se sobrescribe',
|
|
30278
30315
|
baseClassOverridesType: 'Invalidaciones de clase base "{baseClass}" con el tipo "{type}"',
|
|
30316
|
+
bytesTypePromotions: 'Establezca disableBytesTypePromotions en falso para activar el comportamiento de promoci\xF3n de tipos para "bytearray" y "memoryview".',
|
|
30279
30317
|
conditionalRequiresBool: 'El m\xE9todo __bool__ para el tipo "{operandType}" devuelve el tipo "{boolReturnType}" en lugar de "bool"',
|
|
30280
30318
|
dataClassFieldLocation: "en declaraci\xF3n de campo",
|
|
30281
30319
|
dataClassFrozen: '"{name}" est\xE1 congelado',
|
|
@@ -30290,6 +30328,8 @@ var require_package_nls_es = __commonJS({
|
|
|
30290
30328
|
incompatibleSetter: "El m\xE9todo setter de la propiedad no es compatible",
|
|
30291
30329
|
initMethodLocation: 'El m\xE9todo __init__ se define en la clase "{type}"',
|
|
30292
30330
|
initMethodSignature: 'La firma de __init__ es "{type}"',
|
|
30331
|
+
invariantSuggestionDict: 'Considere cambiar de "predicci\xF3n" a " Asignaci\xF3n" que es covariante en el tipo de valor',
|
|
30332
|
+
invariantSuggestionList: 'Considere la posibilidad de cambiar de "lista" a "Secuencia" que es covariante',
|
|
30293
30333
|
keyNotRequired: '"{name}" no es una clave necesaria en "{type}", por lo que el acceso puede dar lugar a una excepci\xF3n en tiempo de ejecuci\xF3n',
|
|
30294
30334
|
keyReadOnly: '"{name}" es una clave de solo lectura en "{type}"',
|
|
30295
30335
|
keyRequiredDeleted: '"{name}" es una clave necesaria y no se puede eliminar',
|
|
@@ -30484,6 +30524,7 @@ var require_package_nls_fr = __commonJS({
|
|
|
30484
30524
|
classMethodClsParam: 'Les m\xE9thodes de classe doivent prendre un param\xE8tre "cls"',
|
|
30485
30525
|
classNotRuntimeSubscriptable: "L\u2019indice de la classe \xAB\xA0{name}\xA0\xBB g\xE9n\xE8re une exception d\u2019ex\xE9cution ; placer l\u2019annotation de type entre guillemets",
|
|
30486
30526
|
classPatternBuiltInArgPositional: "Le mod\xE8le de classe accepte uniquement le sous-mod\xE8le positionnel",
|
|
30527
|
+
classPatternPositionalArgCount: 'Trop de mod\xE8les positionnels pour les "{type}" de classe ; {expected} attendue mais {received} re\xE7ues',
|
|
30487
30528
|
classPatternTypeAlias: `"{type}" ne peut pas \xEAtre utilis\xE9 dans un mod\xE8le de classe car il s'agit d'un alias de type sp\xE9cialis\xE9`,
|
|
30488
30529
|
classTypeParametersIllegal: "La syntaxe du param\xE8tre de type de classe n\xE9cessite Python 3.12 ou version ult\xE9rieure",
|
|
30489
30530
|
classVarFirstArgMissing: 'Attendu un argument de type apr\xE8s "ClassVar"',
|
|
@@ -31015,6 +31056,7 @@ var require_package_nls_fr = __commonJS({
|
|
|
31015
31056
|
baseClassIncompatibleSubclass: "La classe de base \xAB\xA0{baseClass}\xA0\xBB d\xE9rive de \xAB\xA0{subclass}\xA0\xBB qui est incompatible avec le type \xAB\xA0{type}\xA0\xBB",
|
|
31016
31057
|
baseClassOverriddenType: "La classe de base \xAB\xA0{baseClass}\xA0\xBB fournit le type \xAB\xA0{type}\xA0\xBB, qui est remplac\xE9",
|
|
31017
31058
|
baseClassOverridesType: 'La classe de base "{baseClass}" remplace le type "{type}"',
|
|
31059
|
+
bytesTypePromotions: "D\xE9finir disableBytesTypePromotions sur false pour activer le comportement de promotion de type pour \xAB bytearray \xBB et \xAB memoryview \xBB",
|
|
31018
31060
|
conditionalRequiresBool: "La m\xE9thode __bool__ pour le type \xAB\xA0{operandType}\xA0\xBB retourne le type \xAB\xA0{boolReturnType}\xA0\xBB plut\xF4t que \xAB\xA0bool\xA0\xBB",
|
|
31019
31061
|
dataClassFieldLocation: "D\xE9claration de champ",
|
|
31020
31062
|
dataClassFrozen: "\xAB\xA0{name}\xA0\xBB est fig\xE9",
|
|
@@ -31029,6 +31071,8 @@ var require_package_nls_fr = __commonJS({
|
|
|
31029
31071
|
incompatibleSetter: "La m\xE9thode setter de propri\xE9t\xE9 n\u2019est pas compatible",
|
|
31030
31072
|
initMethodLocation: "La m\xE9thode __init__ est d\xE9finie dans la classe \xAB\xA0{type}\xA0\xBB",
|
|
31031
31073
|
initMethodSignature: "La signature de __init__ est \xAB {type} \xBB",
|
|
31074
|
+
invariantSuggestionDict: "Envisagez de passer de \xAB dict \xBB \xE0 \xAB Mapping \xBB, qui est covariant dans le type valeur",
|
|
31075
|
+
invariantSuggestionList: "Envisagez de passer de \xAB list \xBB \xE0 \xAB Sequence \xBB qui est covariant",
|
|
31032
31076
|
keyNotRequired: `"{name}" n'est pas une cl\xE9 requise dans "{type}", donc l'acc\xE8s peut entra\xEEner une exception d'ex\xE9cution`,
|
|
31033
31077
|
keyReadOnly: "\xAB\xA0{name}\xA0\xBB est une cl\xE9 en lecture seule dans \xAB\xA0{type}\xA0\xBB",
|
|
31034
31078
|
keyRequiredDeleted: "\xAB\xA0{name}\xA0\xBB est une cl\xE9 obligatoire et ne peut pas \xEAtre supprim\xE9e",
|
|
@@ -31223,6 +31267,7 @@ var require_package_nls_it = __commonJS({
|
|
|
31223
31267
|
classMethodClsParam: 'I metodi di classe devono accettare un parametro "cls"',
|
|
31224
31268
|
classNotRuntimeSubscriptable: `Il pedice per la classe "{name}" generer\xE0 un'eccezione di runtime; racchiudere l'annotazione di tipo tra virgolette`,
|
|
31225
31269
|
classPatternBuiltInArgPositional: "Il modello di classe accetta solo un sotto pattern posizionale",
|
|
31270
|
+
classPatternPositionalArgCount: 'Troppi modelli posizionale per la classe "{type}"; previsto {expected} ma ottenuto {received}',
|
|
31226
31271
|
classPatternTypeAlias: '"{type}" non pu\xF2 essere usato in uno schema di classe, perch\xE9 \xE8 un alias di tipo specializzato',
|
|
31227
31272
|
classTypeParametersIllegal: "La sintassi del parametro del tipo di classe richiede Python 3.12 o versione successiva",
|
|
31228
31273
|
classVarFirstArgMissing: '\xC8 previsto un argomento tipo dopo "ClassVar"',
|
|
@@ -31754,6 +31799,7 @@ var require_package_nls_it = __commonJS({
|
|
|
31754
31799
|
baseClassIncompatibleSubclass: 'La classe base "{baseClass}" deriva da "{subclass}", che non \xE8 compatibile con il tipo "{type}"',
|
|
31755
31800
|
baseClassOverriddenType: `La classe di base "{baseClass}" fornisce il tipo "{type}", di cui viene eseguito l'override`,
|
|
31756
31801
|
baseClassOverridesType: 'Override della classe base "{baseClass}" con tipo "{type}"',
|
|
31802
|
+
bytesTypePromotions: 'Imposta disableBytesTypePromotions su false per abilitare il comportamento di innalzamento di livello del tipo per "bytearray" e "memoryview"',
|
|
31757
31803
|
conditionalRequiresBool: 'Il metodo __bool__ per il tipo "{operandType}" restituisce il tipo "{boolReturnType}" anzich\xE9 "bool"',
|
|
31758
31804
|
dataClassFieldLocation: "Dichiarazione di campo",
|
|
31759
31805
|
dataClassFrozen: '"{name}" \xE8 bloccato',
|
|
@@ -31768,6 +31814,8 @@ var require_package_nls_it = __commonJS({
|
|
|
31768
31814
|
incompatibleSetter: "Il metodo setter di propriet\xE0 non \xE8 compatibile",
|
|
31769
31815
|
initMethodLocation: 'Il metodo __init__ \xE8 definito nella classe "{type}"',
|
|
31770
31816
|
initMethodSignature: 'Firma del __init__ "{type}"',
|
|
31817
|
+
invariantSuggestionDict: 'Prova a passare da "dict" a "Mapping", che \xE8 covariante nel tipo di valore',
|
|
31818
|
+
invariantSuggestionList: 'Prova a passare da "list" a "Sequence", che \xE8 covariante',
|
|
31771
31819
|
keyNotRequired: `"{name}" non \xE8 una chiave obbligatoria in "{type}", quindi l'accesso potrebbe causare un'eccezione di runtime`,
|
|
31772
31820
|
keyReadOnly: '"{name}" \xE8 una chiave di sola lettura in "{type}"',
|
|
31773
31821
|
keyRequiredDeleted: '"{name}" \xE8 una chiave obbligatoria e non pu\xF2 essere eliminata',
|
|
@@ -31962,6 +32010,7 @@ var require_package_nls_ja = __commonJS({
|
|
|
31962
32010
|
classMethodClsParam: '\u30AF\u30E9\u30B9 \u30E1\u30BD\u30C3\u30C9\u306F "cls" \u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u3092\u53D7\u3051\u53D6\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059',
|
|
31963
32011
|
classNotRuntimeSubscriptable: '\u30AF\u30E9\u30B9 "{name}" \u306E\u6DFB\u5B57\u306F\u30E9\u30F3\u30BF\u30A4\u30E0\u4F8B\u5916\u3092\u751F\u6210\u3057\u307E\u3059\u3002\u578B\u306E\u6CE8\u91C8\u3092\u5F15\u7528\u7B26\u3067\u56F2\u3080',
|
|
31964
32012
|
classPatternBuiltInArgPositional: "\u30AF\u30E9\u30B9 \u30D1\u30BF\u30FC\u30F3\u306F\u4F4D\u7F6E\u6307\u5B9A\u30B5\u30D6\u30D1\u30BF\u30FC\u30F3\u306E\u307F\u3092\u53D7\u3051\u5165\u308C\u307E\u3059",
|
|
32013
|
+
classPatternPositionalArgCount: '\u30AF\u30E9\u30B9 "{type}" \u306E\u4F4D\u7F6E\u6307\u5B9A\u30D1\u30BF\u30FC\u30F3\u304C\u591A\u3059\u304E\u307E\u3059\u3002{expected} \u304C\u5FC5\u8981\u3067\u3059\u304C\u3001{received} \u3092\u53D7\u4FE1\u3057\u307E\u3057\u305F',
|
|
31965
32014
|
classPatternTypeAlias: '"{type}" \u306F\u7279\u6B8A\u306A\u578B\u30A8\u30A4\u30EA\u30A2\u30B9\u3067\u3042\u308B\u305F\u3081\u3001\u30AF\u30E9\u30B9 \u30D1\u30BF\u30FC\u30F3\u3067\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093',
|
|
31966
32015
|
classTypeParametersIllegal: "\u30AF\u30E9\u30B9\u578B\u30D1\u30E9\u30E1\u30FC\u30BF\u30FC\u306E\u69CB\u6587\u306B\u306F Python 3.12 \u4EE5\u964D\u304C\u5FC5\u8981\u3067\u3059",
|
|
31967
32016
|
classVarFirstArgMissing: '"ClassVar" \u306E\u5F8C\u306B\u578B\u5F15\u6570\u304C\u5FC5\u8981\u3067\u3059',
|
|
@@ -32493,6 +32542,7 @@ var require_package_nls_ja = __commonJS({
|
|
|
32493
32542
|
baseClassIncompatibleSubclass: '\u57FA\u5E95\u30AF\u30E9\u30B9 "{baseClass}" \u306F\u3001\u578B "{type}" \u3068\u4E92\u63DB\u6027\u306E\u306A\u3044 "{subclass}" \u304B\u3089\u6D3E\u751F\u3057\u3066\u3044\u307E\u3059',
|
|
32494
32543
|
baseClassOverriddenType: '\u57FA\u5E95\u30AF\u30E9\u30B9 "{baseClass}" \u306F\u3001\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u3055\u308C\u308B\u578B "{type}" \u3092\u63D0\u4F9B\u3057\u307E\u3059',
|
|
32495
32544
|
baseClassOverridesType: '\u57FA\u5E95\u30AF\u30E9\u30B9 "{baseClass}" \u306F\u578B "{type}" \u3067\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u3057\u307E\u3059',
|
|
32545
|
+
bytesTypePromotions: 'disableBytesTypePromotions \u3092 false \u306B\u8A2D\u5B9A\u3057\u3066\u3001"bytearray" \u3068 "memoryview" \u306E\u578B\u6607\u683C\u52D5\u4F5C\u3092\u6709\u52B9\u306B\u3057\u307E\u3059',
|
|
32496
32546
|
conditionalRequiresBool: '\u578B "{operandType}" \u306E\u30E1\u30BD\u30C3\u30C9 __bool__\u306F\u3001"bool" \u3067\u306F\u306A\u304F\u578B "{boolReturnType}" \u3092\u8FD4\u3057\u307E\u3059',
|
|
32497
32547
|
dataClassFieldLocation: "\u30D5\u30A3\u30FC\u30EB\u30C9\u5BA3\u8A00",
|
|
32498
32548
|
dataClassFrozen: '"{name}" \u306F\u56FA\u5B9A\u3055\u308C\u3066\u3044\u307E\u3059',
|
|
@@ -32507,6 +32557,8 @@ var require_package_nls_ja = __commonJS({
|
|
|
32507
32557
|
incompatibleSetter: "\u30D7\u30ED\u30D1\u30C6\u30A3 \u30BB\u30C3\u30BF\u30FC \u30E1\u30BD\u30C3\u30C9\u306B\u4E92\u63DB\u6027\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
32508
32558
|
initMethodLocation: '__init__ \u30E1\u30BD\u30C3\u30C9\u306F\u30AF\u30E9\u30B9 "{type}" \u3067\u5B9A\u7FA9\u3055\u308C\u3066\u3044\u307E\u3059',
|
|
32509
32559
|
initMethodSignature: '__init__\u306E\u7F72\u540D\u306F "{type}" \u3067\u3059',
|
|
32560
|
+
invariantSuggestionDict: '"dict" \u304B\u3089\u5024\u306E\u578B\u306E\u5171\u5909\u3067\u3042\u308B "Mapping" \u3078\u306E\u5207\u308A\u66FF\u3048\u3092\u691C\u8A0E\u3057\u3066\u304F\u3060\u3055\u3044',
|
|
32561
|
+
invariantSuggestionList: '"list" \u304B\u3089\u5171\u5909\u3067\u3042\u308B "Sequence" \u3078\u306E\u5207\u308A\u66FF\u3048\u3092\u691C\u8A0E\u3057\u3066\u304F\u3060\u3055\u3044',
|
|
32510
32562
|
keyNotRequired: '"{name}" \u306F "{type}" \u306E\u5FC5\u9808\u30AD\u30FC\u3067\u306F\u306A\u3044\u305F\u3081\u3001\u30A2\u30AF\u30BB\u30B9\u3059\u308B\u3068\u5B9F\u884C\u6642\u4F8B\u5916\u304C\u767A\u751F\u3059\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059',
|
|
32511
32563
|
keyReadOnly: '"{name}" \u306F "{type}" \u306E\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u30AD\u30FC\u3067\u3059',
|
|
32512
32564
|
keyRequiredDeleted: '"{name}" \u306F\u5FC5\u9808\u30AD\u30FC\u3067\u3042\u308A\u3001\u524A\u9664\u3067\u304D\u307E\u305B\u3093',
|
|
@@ -32701,6 +32753,7 @@ var require_package_nls_ko = __commonJS({
|
|
|
32701
32753
|
classMethodClsParam: "\uD074\uB798\uC2A4 \uBA54\uC11C\uB4DC\uB294 \u2018cls\u2019 \uB9E4\uAC1C \uBCC0\uC218\uB97C \uC0AC\uC6A9\uD574\uC57C \uD569\uB2C8\uB2E4.",
|
|
32702
32754
|
classNotRuntimeSubscriptable: '\uD074\uB798\uC2A4 "{name}"\uC5D0 \uB300\uD55C \uCCA8\uC790\uB294 \uB7F0\uD0C0\uC784 \uC608\uC678\uB97C \uC0DD\uC131\uD569\uB2C8\uB2E4. \uB530\uC634\uD45C\uB85C \uD615\uC2DD \uC8FC\uC11D \uBB36\uAE30',
|
|
32703
32755
|
classPatternBuiltInArgPositional: "\uD074\uB798\uC2A4 \uD328\uD134\uC740 \uC704\uCE58 \uD558\uC704 \uD328\uD134\uB9CC \uD5C8\uC6A9\uD569\uB2C8\uB2E4.",
|
|
32756
|
+
classPatternPositionalArgCount: '\uD074\uB798\uC2A4 "{type}"\uC5D0 \uB300\uD55C \uC704\uCE58 \uD328\uD134\uC774 \uB108\uBB34 \uB9CE\uC2B5\uB2C8\uB2E4. {expected}\uC774(\uAC00) \uD544\uC694\uD558\uC9C0\uB9CC {received}\uC744(\uB97C) \uBC1B\uC558\uC2B5\uB2C8\uB2E4.',
|
|
32704
32757
|
classPatternTypeAlias: "\u2018{type}\u2019\uC740(\uB294) \uD2B9\uC218 \uD615\uC2DD \uBCC4\uCE6D\uC774\uBBC0\uB85C \uD074\uB798\uC2A4 \uD328\uD134\uC5D0\uC11C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
32705
32758
|
classTypeParametersIllegal: "\uD074\uB798\uC2A4 \uD615\uC2DD \uB9E4\uAC1C \uBCC0\uC218 \uAD6C\uBB38\uC5D0\uB294 Python 3.12 \uC774\uC0C1\uC774 \uD544\uC694\uD569\uB2C8\uB2E4.",
|
|
32706
32759
|
classVarFirstArgMissing: "\u2018ClassVar\u2019 \uB4A4\uC5D0 \uD615\uC2DD \uC778\uC218\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4.",
|
|
@@ -33232,6 +33285,7 @@ var require_package_nls_ko = __commonJS({
|
|
|
33232
33285
|
baseClassIncompatibleSubclass: '\uAE30\uBCF8 \uD074\uB798\uC2A4 "{baseClass}"\uC740(\uB294) "{type}" \uC720\uD615\uACFC \uD638\uD658\uB418\uC9C0 \uC54A\uB294 "{subclass}"\uC5D0\uC11C \uD30C\uC0DD\uB429\uB2C8\uB2E4.',
|
|
33233
33286
|
baseClassOverriddenType: '\uAE30\uBCF8 \uD074\uB798\uC2A4 "{baseClass}"\uC774(\uAC00) \uC7AC\uC815\uC758\uB41C "{type}" \uD615\uC2DD\uC744 \uC81C\uACF5\uD569\uB2C8\uB2E4.',
|
|
33234
33287
|
baseClassOverridesType: "\u2018{baseClass}\u2019 \uAE30\uBCF8 \uD074\uB798\uC2A4\uAC00 \u2018{type}\u2019 \uD615\uC2DD\uC744 \uC7AC\uC815\uC758\uD569\uB2C8\uB2E4.",
|
|
33288
|
+
bytesTypePromotions: 'disableBytesTypePromotions\uB97C false\uB85C \uC124\uC815\uD558\uC5EC "bytearray" \uBC0F "memoryview"\uC5D0 \uB300\uD55C \uD615\uC2DD \uC2B9\uACA9 \uB3D9\uC791\uC744 \uC0AC\uC6A9\uD558\uB3C4\uB85D \uC124\uC815\uD569\uB2C8\uB2E4.',
|
|
33235
33289
|
conditionalRequiresBool: '"{operandType}" \uD615\uC2DD\uC5D0 \uB300\uD55C \uBA54\uC11C\uB4DC __bool__\uC5D0\uC11C "bool" \uB300\uC2E0 "{boolReturnType}" \uD615\uC2DD\uC744 \uBC18\uD658\uD569\uB2C8\uB2E4.',
|
|
33236
33290
|
dataClassFieldLocation: "\uD544\uB4DC \uC120\uC5B8",
|
|
33237
33291
|
dataClassFrozen: '"{name}"\uC774(\uAC00) \uACE0\uC815\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.',
|
|
@@ -33246,6 +33300,8 @@ var require_package_nls_ko = __commonJS({
|
|
|
33246
33300
|
incompatibleSetter: "\uC18D\uC131 setter \uBA54\uC11C\uB4DC\uAC00 \uD638\uD658\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
33247
33301
|
initMethodLocation: '__init__ \uBA54\uC11C\uB4DC\uAC00 "{type}" \uD074\uB798\uC2A4\uC5D0 \uC815\uC758\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.',
|
|
33248
33302
|
initMethodSignature: '__init__\uC758 \uC11C\uBA85\uC740 "{type}"\uC785\uB2C8\uB2E4.',
|
|
33303
|
+
invariantSuggestionDict: '\uAC12 \uD615\uC2DD\uC5D0\uC11C \uACF5\uBCC0(covariant)\uC778 "dict"\uC5D0\uC11C "Mapping"(\uB9E4\uD551)\uC73C\uB85C \uC804\uD658\uD558\uB294 \uAC83\uC774 \uC88B\uC2B5\uB2C8\uB2E4.',
|
|
33304
|
+
invariantSuggestionList: '\uACF5\uBCC0(covariant)\uC778 "list"\uC5D0\uC11C "Sequence"\uB85C \uC804\uD658\uD558\uB294 \uAC83\uC774 \uC88B\uC2B5\uB2C8\uB2E4.',
|
|
33249
33305
|
keyNotRequired: "\u2018{name}\u2019\uC740(\uB294) \u2018{type}\u2019\uC5D0\uC11C \uD544\uC218 \uD0A4\uAC00 \uC544\uB2C8\uBBC0\uB85C \uC561\uC138\uC2A4\uB85C \uC778\uD574 \uB7F0\uD0C0\uC784 \uC608\uC678\uAC00 \uBC1C\uC0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
33250
33306
|
keyReadOnly: '"{name}"\uC740(\uB294) "{type}"\uC758 \uC77D\uAE30 \uC804\uC6A9 \uD0A4\uC785\uB2C8\uB2E4.',
|
|
33251
33307
|
keyRequiredDeleted: '"{name}"\uC740(\uB294) \uD544\uC218 \uD0A4\uC774\uBBC0\uB85C \uC0AD\uC81C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.',
|
|
@@ -33440,6 +33496,7 @@ var require_package_nls_pl = __commonJS({
|
|
|
33440
33496
|
classMethodClsParam: "Metody klasy powinny przyjmowa\u0107 parametr \u201Ecls\u201D",
|
|
33441
33497
|
classNotRuntimeSubscriptable: "Indeks dolny dla klasy \u201E{name}\u201D wygeneruje wyj\u0105tek czasu uruchamiania; umie\u015B\u0107 adnotacj\u0119 typu w cudzys\u0142owie",
|
|
33442
33498
|
classPatternBuiltInArgPositional: "Wzorzec klasy akceptuje tylko podwzorzec pozycyjny",
|
|
33499
|
+
classPatternPositionalArgCount: "Zbyt wiele wzorc\xF3w pozycyjnych dla klasy \u201E{type}\u201D; oczekiwano {expected}, ale otrzymano {received}",
|
|
33443
33500
|
classPatternTypeAlias: "\u201E{type}\u201D nie mo\u017Ce by\u0107 u\u017Cywany we wzorcu klasy, poniewa\u017C jest to alias typu specjalnego",
|
|
33444
33501
|
classTypeParametersIllegal: "Sk\u0142adnia parametru typu klasy wymaga j\u0119zyka Python w wersji 3.12 lub nowszej",
|
|
33445
33502
|
classVarFirstArgMissing: "Oczekiwano argumentu typu po warto\u015Bci \u201EClassVar\u201D",
|
|
@@ -33971,6 +34028,7 @@ var require_package_nls_pl = __commonJS({
|
|
|
33971
34028
|
baseClassIncompatibleSubclass: "Klasa bazowa \u201E{baseClass}\u201D pochodzi od klasy podrz\u0119dnej \u201E{subclass}\u201D, kt\xF3ra jest niezgodna z typem \u201E{type}\u201D",
|
|
33972
34029
|
baseClassOverriddenType: "Klasa bazowa \u201E{baseClass}\u201D udost\u0119pnia typ \u201E{type}\u201D, kt\xF3ry jest przes\u0142oni\u0119ty",
|
|
33973
34030
|
baseClassOverridesType: "Zast\u0105pienie klasy bazowej \u201E{baseClass}\u201D typem \u201E{type}\u201D",
|
|
34031
|
+
bytesTypePromotions: "Ustaw w\u0142a\u015Bciwo\u015B\u0107 disableBytesTypePromotions na warto\u015B\u0107 false, aby w\u0142\u0105czy\u0107 zachowanie promocji typu dla element\xF3w \u201Ebytearray\u201D i \u201Ememoryview\u201D",
|
|
33974
34032
|
conditionalRequiresBool: 'Metoda __bool__ dla typu \u201E{operandType}\u201D zwraca typ "{boolReturnType}" zamiast \u201Ebool\u201D',
|
|
33975
34033
|
dataClassFieldLocation: "Deklaracja pola",
|
|
33976
34034
|
dataClassFrozen: "Nazwa \u201E{name}\u201D jest zamro\u017Cona",
|
|
@@ -33985,6 +34043,8 @@ var require_package_nls_pl = __commonJS({
|
|
|
33985
34043
|
incompatibleSetter: "Metoda ustawiaj\u0105ca w\u0142a\u015Bciwo\u015Bci jest niezgodna",
|
|
33986
34044
|
initMethodLocation: "Metoda __init__ jest zdefiniowana w klasie \u201E{type}\u201D",
|
|
33987
34045
|
initMethodSignature: "Sygnatura __init__ to typ \u201E{type}\u201D",
|
|
34046
|
+
invariantSuggestionDict: "Rozwa\u017C prze\u0142\u0105czenie z warto\u015Bci \u201Edict\u201D na \u201EMapping\u201D, kt\xF3ra jest kowariantna w typie warto\u015Bci",
|
|
34047
|
+
invariantSuggestionList: "Rozwa\u017C zmian\u0119 warto\u015Bci \u201Elist\u201D na \u201ESequence\u201D, kt\xF3ra jest kowariantna",
|
|
33988
34048
|
keyNotRequired: "\u201E{name}\u201D nie jest wymaganym kluczem w typie \u201E{type}\u201D, wi\u0119c dost\u0119p mo\u017Ce spowodowa\u0107 wyj\u0105tek \u015Brodowiska uruchomieniowego",
|
|
33989
34049
|
keyReadOnly: "Nazwa \u201E{name}\u201D jest kluczem tylko do odczytu w typie \u201E{type}\u201D",
|
|
33990
34050
|
keyRequiredDeleted: "Nazwa \u201E{name}\u201D jest wymaganym kluczem i nie mo\u017Cna go usun\u0105\u0107",
|
|
@@ -34179,6 +34239,7 @@ var require_package_nls_pt_br = __commonJS({
|
|
|
34179
34239
|
classMethodClsParam: 'Os m\xE9todos de classe devem usar um par\xE2metro "cls"',
|
|
34180
34240
|
classNotRuntimeSubscriptable: 'O subscrito para a classe "{name}" gerar\xE1 uma exce\xE7\xE3o de runtime. Coloque a anota\xE7\xE3o de tipo entre aspas',
|
|
34181
34241
|
classPatternBuiltInArgPositional: "O padr\xE3o de classe aceita apenas sub-padr\xE3o posicional",
|
|
34242
|
+
classPatternPositionalArgCount: 'Muitos padr\xF5es posicionais para a classe "{type}"; esperado {expected} mas recebido {received}',
|
|
34182
34243
|
classPatternTypeAlias: '"{type}" n\xE3o pode ser usado em um padr\xE3o de classe porque \xE9 um alias de tipo especializado',
|
|
34183
34244
|
classTypeParametersIllegal: "A sintaxe do par\xE2metro de tipo de classe requer o Python 3.12 ou mais recente",
|
|
34184
34245
|
classVarFirstArgMissing: 'Um argumento de tipo era esperado ap\xF3s "ClassVar"',
|
|
@@ -34710,6 +34771,7 @@ var require_package_nls_pt_br = __commonJS({
|
|
|
34710
34771
|
baseClassIncompatibleSubclass: 'A classe base "{baseClass}" deriva de "{subclass}" que \xE9 incompat\xEDvel com o tipo "{type}"',
|
|
34711
34772
|
baseClassOverriddenType: 'A classe base "{baseClass}" fornece o tipo "{type}", que \xE9 substitu\xEDdo',
|
|
34712
34773
|
baseClassOverridesType: 'A classe base "{baseClass}" substitui pelo tipo "{type}"',
|
|
34774
|
+
bytesTypePromotions: 'Defina disableBytesTypePromotions como false para habilitar o comportamento de promo\xE7\xE3o de tipo para "bytearray" e "memoryview"',
|
|
34713
34775
|
conditionalRequiresBool: 'O m\xE9todo __bool__ para o tipo "{operandType}" retorna o tipo "{boolReturnType}" em vez de "bool"',
|
|
34714
34776
|
dataClassFieldLocation: "Declara\xE7\xE3o de campo",
|
|
34715
34777
|
dataClassFrozen: '"{name}" est\xE1 congelado',
|
|
@@ -34724,6 +34786,8 @@ var require_package_nls_pt_br = __commonJS({
|
|
|
34724
34786
|
incompatibleSetter: "O m\xE9todo setter de propriedade \xE9 incompat\xEDvel",
|
|
34725
34787
|
initMethodLocation: 'O m\xE9todo __init__ \xE9 definido na classe "{type}"',
|
|
34726
34788
|
initMethodSignature: 'A assinatura de __init__ \xE9 "{type}"',
|
|
34789
|
+
invariantSuggestionDict: 'Considere alternar de "dict" para "Mapping", que \xE9 covariante no tipo de valor',
|
|
34790
|
+
invariantSuggestionList: 'Considere alternar de "list" para "Sequence", que \xE9 covariante',
|
|
34727
34791
|
keyNotRequired: '"{name}" n\xE3o \xE9 uma chave necess\xE1ria em "{type}", portanto, o acesso pode resultar em exce\xE7\xE3o de runtime',
|
|
34728
34792
|
keyReadOnly: '"{name}" \xE9 uma chave somente leitura em "{type}"',
|
|
34729
34793
|
keyRequiredDeleted: '"{name}" \xE9 uma chave obrigat\xF3ria e n\xE3o pode ser exclu\xEDda',
|
|
@@ -34918,6 +34982,7 @@ var require_package_nls_qps_ploc = __commonJS({
|
|
|
34918
34982
|
classMethodClsParam: '[aWMN3][\u0E19\u0E31\u0E49\xC7l\xE6ss m\xEBth\xF8\xF0s sh\xF8\xB5l\xF0 t\xE6k\xEB \xE6 "\xE7ls" p\xE6r\xE6m\xEBt\xEBr\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
34919
34983
|
classNotRuntimeSubscriptable: '[O9BL6][\u0E19\u0E31\u0E49\xA7\xB5\xFEs\xE7r\xEFpt f\xF8r \xE7l\xE6ss "{\xF1\xE6m\xEB}" w\xEFll g\xEB\xF1\xEBr\xE6t\xEB r\xB5\xF1t\xEFm\xEB \xEBx\xE7\xEBpt\xEF\xF8\xF1; \xEB\xF1\xE7l\xF8s\xEB t\xFFp\xEB \xE6\xF1\xF1\xF8t\xE6t\xEF\xF8\xF1 \xEF\xF1 q\xB5\xF8t\xEBs\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
34920
34984
|
classPatternBuiltInArgPositional: "[DOfs5][\u0E19\u0E31\u0E49\xC7l\xE6ss p\xE6tt\xEBr\xF1 \xE6\xE7\xE7\xEBpts \xF8\xF1l\xFF p\xF8s\xEFt\xEF\xF8\xF1\xE6l s\xB5\xFE-p\xE6tt\xEBr\xF1\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0E19\u0E31\u0E49\u0922\u0942\u0901]",
|
|
34985
|
+
classPatternPositionalArgCount: '[B65y5][\u0E19\u0E31\u0E49T\xF8\xF8 m\xE6\xF1\xFF p\xF8s\xEFt\xEF\xF8\xF1\xE6l p\xE6tt\xEBr\xF1s f\xF8r \xE7l\xE6ss "{t\xFFp\xEB}"; \xEBxp\xEB\xE7t\xEB\xF0 {\xEBxp\xEB\xE7t\xEB\xF0} \xFE\xB5t r\xEB\xE7\xEB\xEFv\xEB\xF0 {r\xEB\xE7\xEB\xEFv\xEB\xF0}\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
34921
34986
|
classPatternTypeAlias: '[AxDtv][\u0E19\u0E31\u0E49"{t\xFFp\xEB}" \xE7\xE6\xF1\xF1\xF8t \xFE\xEB \xB5s\xEB\xF0 \xEF\xF1 \xE6 \xE7l\xE6ss p\xE6tt\xEBr\xF1 \xFE\xEB\xE7\xE6\xB5s\xEB \xEFt \xEFs \xE6 sp\xEB\xE7\xEF\xE6l\xEFz\xEB\xF0 t\xFFp\xEB \xE6l\xEF\xE6s\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
34922
34987
|
classTypeParametersIllegal: "[GybXD][\u0E19\u0E31\u0E49\xC7l\xE6ss t\xFFp\xEB p\xE6r\xE6m\xEBt\xEBr s\xFF\xF1t\xE6x r\xEBq\xB5\xEFr\xEBs P\xFFth\xF8\xF1 3.12 \xF8r \xF1\xEBw\xEBr\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]",
|
|
34923
34988
|
classVarFirstArgMissing: '[VtcEd][\u0E19\u0E31\u0E49\xCBxp\xEB\xE7t\xEB\xF0 \xE6 t\xFFp\xEB \xE6rg\xB5m\xEB\xF1t \xE6ft\xEBr "\xC7l\xE6ssV\xE6r"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
@@ -35449,6 +35514,7 @@ var require_package_nls_qps_ploc = __commonJS({
|
|
|
35449
35514
|
baseClassIncompatibleSubclass: '[mMUCH][\u0E19\u0E31\u0E49\xDF\xE6s\xEB \xE7l\xE6ss "{\xFE\xE6s\xEB\xC7l\xE6ss}" \xF0\xEBr\xEFv\xEBs fr\xF8m "{s\xB5\xFE\xE7l\xE6ss}" wh\xEF\xE7h \xEFs \xEF\xF1\xE7\xF8mp\xE6t\xEF\xFEl\xEB w\xEFth t\xFFp\xEB "{t\xFFp\xEB}"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
35450
35515
|
baseClassOverriddenType: '[Hp8Sl][\u0E19\u0E31\u0E49\xDF\xE6s\xEB \xE7l\xE6ss "{\xFE\xE6s\xEB\xC7l\xE6ss}" pr\xF8v\xEF\xF0\xEBs t\xFFp\xEB "{t\xFFp\xEB}", wh\xEF\xE7h \xEFs \xF8v\xEBrr\xEF\xF0\xF0\xEB\xF1\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
35451
35516
|
baseClassOverridesType: '[P7N4Y][\u0E19\u0E31\u0E49\xDF\xE6s\xEB \xE7l\xE6ss "{\xFE\xE6s\xEB\xC7l\xE6ss}" \xF8v\xEBrr\xEF\xF0\xEBs w\xEFth t\xFFp\xEB "{t\xFFp\xEB}"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
35517
|
+
bytesTypePromotions: '[qIXYb][\u0E19\u0E31\u0E49\xA7\xEBt \xF0\xEFs\xE6\xFEl\xEB\xDF\xFFt\xEBsT\xFFp\xEBPr\xF8m\xF8t\xEF\xF8\xF1s t\xF8 f\xE6ls\xEB t\xF8 \xEB\xF1\xE6\xFEl\xEB t\xFFp\xEB pr\xF8m\xF8t\xEF\xF8\xF1 \xFE\xEBh\xE6v\xEF\xF8r f\xF8r "\xFE\xFFt\xEB\xE6rr\xE6\xFF" \xE6\xF1\xF0 "m\xEBm\xF8r\xFFv\xEF\xEBw"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
35452
35518
|
conditionalRequiresBool: '[k1G9a][\u0E19\u0E31\u0E49M\xEBth\xF8\xF0 __\xFE\xF8\xF8l__ f\xF8r t\xFFp\xEB "{\xF8p\xEBr\xE6\xF1\xF0T\xFFp\xEB}" r\xEBt\xB5r\xF1s t\xFFp\xEB "{\xFE\xF8\xF8lR\xEBt\xB5r\xF1T\xFFp\xEB}" r\xE6th\xEBr th\xE6\xF1 "\xFE\xF8\xF8l"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
35453
35519
|
dataClassFieldLocation: "[vQxtf][\u0E19\u0E31\u0E49F\xEF\xEBl\xF0 \xF0\xEB\xE7l\xE6r\xE6t\xEF\xF8\xF1\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]",
|
|
35454
35520
|
dataClassFrozen: '[d4uiK][\u0E19\u0E31\u0E49"{\xF1\xE6m\xEB}" \xEFs fr\xF8z\xEB\xF1\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
@@ -35463,6 +35529,8 @@ var require_package_nls_qps_ploc = __commonJS({
|
|
|
35463
35529
|
incompatibleSetter: "[GDoso][\u0E19\u0E31\u0E49Pr\xF8p\xEBrt\xFF s\xEBtt\xEBr m\xEBth\xF8\xF0 \xEFs \xEF\xF1\xE7\xF8mp\xE6t\xEF\xFEl\xEB\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u0E19\u0E31\u0E49\u0922\u0942\u0901]",
|
|
35464
35530
|
initMethodLocation: '[D4O2l][\u0E19\u0E31\u0E49Th\xEB __\xEF\xF1\xEFt__ m\xEBth\xF8\xF0 \xEFs \xF0\xEBf\xEF\xF1\xEB\xF0 \xEF\xF1 \xE7l\xE6ss "{t\xFFp\xEB}"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
35465
35531
|
initMethodSignature: '[EULjB][\u0E19\u0E31\u0E49\xA7\xEFg\xF1\xE6t\xB5r\xEB \xF8f __\xEF\xF1\xEFt__ \xEFs "{t\xFFp\xEB}"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
35532
|
+
invariantSuggestionDict: '[OIoHo][\u0E19\u0E31\u0E49\xC7\xF8\xF1s\xEF\xF0\xEBr sw\xEFt\xE7h\xEF\xF1g fr\xF8m "\xF0\xEF\xE7t" t\xF8 "M\xE6pp\xEF\xF1g" wh\xEF\xE7h \xEFs \xE7\xF8v\xE6r\xEF\xE6\xF1t \xEF\xF1 th\xEB v\xE6l\xB5\xEB t\xFFp\xEB\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
35533
|
+
invariantSuggestionList: '[irYWI][\u0E19\u0E31\u0E49\xC7\xF8\xF1s\xEF\xF0\xEBr sw\xEFt\xE7h\xEF\xF1g fr\xF8m "l\xEFst" t\xF8 "\xA7\xEBq\xB5\xEB\xF1\xE7\xEB" wh\xEF\xE7h \xEFs \xE7\xF8v\xE6r\xEF\xE6\xF1t\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
35466
35534
|
keyNotRequired: '[K1bDP][\u0E19\u0E31\u0E49"{\xF1\xE6m\xEB}" \xEFs \xF1\xF8t \xE6 r\xEBq\xB5\xEFr\xEB\xF0 k\xEB\xFF \xEF\xF1 "{t\xFFp\xEB}", s\xF8 \xE6\xE7\xE7\xEBss m\xE6\xFF r\xEBs\xB5lt \xEF\xF1 r\xB5\xF1t\xEFm\xEB \xEBx\xE7\xEBpt\xEF\xF8\xF1\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
35467
35535
|
keyReadOnly: '[dhAH3][\u0E19\u0E31\u0E49"{\xF1\xE6m\xEB}" \xEFs \xE6 r\xEB\xE6\xF0-\xF8\xF1l\xFF k\xEB\xFF \xEF\xF1 "{t\xFFp\xEB}"\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
35468
35536
|
keyRequiredDeleted: '[YeZa5][\u0E19\u0E31\u0E49"{\xF1\xE6m\xEB}" \xEFs \xE6 r\xEBq\xB5\xEFr\xEB\xF0 k\xEB\xFF \xE6\xF1\xF0 \xE7\xE6\xF1\xF1\xF8t \xFE\xEB \xF0\xEBl\xEBt\xEB\xF0\u1EA4\u011F\u502A\u0130\u0402\u04B0\u0915\u094D\u0930\u094D\u0924\u093F\u0943\u307E\u1EA4\u011F\u502A\u0130\u0402\u0E19\u0E31\u0E49\u0922\u0942\u0901]',
|
|
@@ -35657,6 +35725,7 @@ var require_package_nls_ru = __commonJS({
|
|
|
35657
35725
|
classMethodClsParam: "\u041C\u0435\u0442\u043E\u0434\u044B \u043A\u043B\u0430\u0441\u0441\u0430 \u0434\u043E\u043B\u0436\u043D\u044B \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0442\u044C \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 cls",
|
|
35658
35726
|
classNotRuntimeSubscriptable: '\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u0432\u0437\u044F\u0442\u0438\u044F \u043F\u043E\u0434\u0441\u0442\u0440\u043E\u043A\u0438 \u0434\u043B\u044F \u043A\u043B\u0430\u0441\u0441\u0430 "{name}" \u0441\u043E\u0437\u0434\u0430\u0441\u0442 \u0438\u0441\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0441\u0440\u0435\u0434\u044B \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F; \u0437\u0430\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0437\u0430\u043C\u0435\u0442\u043A\u0443 \u0442\u0438\u043F\u0430 \u0432 \u043A\u0430\u0432\u044B\u0447\u043A\u0438',
|
|
35659
35727
|
classPatternBuiltInArgPositional: "\u0428\u0430\u0431\u043B\u043E\u043D \u043A\u043B\u0430\u0441\u0441\u0430 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u043F\u043E\u0437\u0438\u0446\u0438\u043E\u043D\u043D\u044B\u0439 \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439 \u0448\u0430\u0431\u043B\u043E\u043D",
|
|
35728
|
+
classPatternPositionalArgCount: '\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u043D\u043E\u0433\u043E \u043F\u043E\u0437\u0438\u0446\u0438\u043E\u043D\u043D\u044B\u0445 \u0448\u0430\u0431\u043B\u043E\u043D\u043E\u0432 \u0434\u043B\u044F \u043A\u043B\u0430\u0441\u0441\u0430 "{type}"; \u043E\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044F {expected}, \u043D\u043E \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E {received}',
|
|
35660
35729
|
classPatternTypeAlias: '"{type}" \u043D\u0435\u043B\u044C\u0437\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432 \u0448\u0430\u0431\u043B\u043E\u043D\u0435 \u043A\u043B\u0430\u0441\u0441\u0430, \u043F\u043E\u0441\u043A\u043E\u043B\u044C\u043A\u0443 \u044D\u0442\u043E \u043F\u0441\u0435\u0432\u0434\u043E\u043D\u0438\u043C \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0433\u043E \u0442\u0438\u043F\u0430',
|
|
35661
35730
|
classTypeParametersIllegal: "\u0421\u0438\u043D\u0442\u0430\u043A\u0441\u0438\u0441 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 \u0442\u0438\u043F\u0430 \u043A\u043B\u0430\u0441\u0441\u0430 \u043C\u043E\u0436\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 Python \u0432\u0435\u0440\u0441\u0438\u0438 \u043D\u0435 \u043D\u0438\u0436\u0435 3.12.",
|
|
35662
35731
|
classVarFirstArgMissing: '\u041E\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044F \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442 \u0442\u0438\u043F\u0430 \u043F\u043E\u0441\u043B\u0435 "ClassVar"',
|
|
@@ -36188,6 +36257,7 @@ var require_package_nls_ru = __commonJS({
|
|
|
36188
36257
|
baseClassIncompatibleSubclass: '\u0411\u0430\u0437\u043E\u0432\u044B\u0439 \u043A\u043B\u0430\u0441\u0441 "{baseClass}" \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u043D\u044B\u043C \u043E\u0442 "{subclass}", \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u043D\u0435\u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C \u0441 \u0442\u0438\u043F\u043E\u043C "{type}"',
|
|
36189
36258
|
baseClassOverriddenType: '\u0411\u0430\u0437\u043E\u0432\u044B\u0439 \u043A\u043B\u0430\u0441\u0441 "{baseClass}" \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0442\u0438\u043F "{type}", \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u043F\u0435\u0440\u0435\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D',
|
|
36190
36259
|
baseClassOverridesType: '\u0411\u0430\u0437\u043E\u0432\u044B\u0439 \u043A\u043B\u0430\u0441\u0441 "{baseClass}" \u043F\u0435\u0440\u0435\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u0442 \u0442\u0438\u043F "{type}"',
|
|
36260
|
+
bytesTypePromotions: '\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u0434\u043B\u044F \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430 DisableBytesTypePromotions \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u041B\u041E\u0416\u042C, \u0447\u0442\u043E\u0431\u044B \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u044B\u0448\u0435\u043D\u0438\u0435 \u0442\u0438\u043F\u0430 \u0434\u043B\u044F "bytearray" \u0438 "memoryview"',
|
|
36191
36261
|
conditionalRequiresBool: '\u041C\u0435\u0442\u043E\u0434 __bool__ \u0434\u043B\u044F \u0442\u0438\u043F\u0430 "{operandType}" \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u0438\u043F "{boolReturnType}", \u0430 \u043D\u0435 "bool"',
|
|
36192
36262
|
dataClassFieldLocation: "\u041E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u044F",
|
|
36193
36263
|
dataClassFrozen: '\u042D\u043B\u0435\u043C\u0435\u043D\u0442 "{name}" \u0437\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D',
|
|
@@ -36202,6 +36272,8 @@ var require_package_nls_ru = __commonJS({
|
|
|
36202
36272
|
incompatibleSetter: "\u041C\u0435\u0442\u043E\u0434 \u0437\u0430\u0434\u0430\u043D\u0438\u044F \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043D\u0435\u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C\u044B\u043C",
|
|
36203
36273
|
initMethodLocation: '\u041C\u0435\u0442\u043E\u0434 __init__ \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D \u0432 \u043A\u043B\u0430\u0441\u0441\u0435 "{type}"',
|
|
36204
36274
|
initMethodSignature: '\u0421\u0438\u0433\u043D\u0430\u0442\u0443\u0440\u0430 __init__ \u2014 "{type}"',
|
|
36275
|
+
invariantSuggestionDict: '\u0420\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043F\u0435\u0440\u0435\u0445\u043E\u0434\u0430 \u0441 "dict" \u043D\u0430 "Mapping", \u044F\u0432\u043B\u044F\u044E\u0449\u0438\u0439\u0441\u044F \u043A\u043E\u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043D\u044B\u043C \u043F\u043E \u0442\u0438\u043F\u0443 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F.',
|
|
36276
|
+
invariantSuggestionList: '\u0420\u0430\u0441\u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043F\u0435\u0440\u0435\u0445\u043E\u0434\u0430 \u0441 "list" \u043D\u0430 "Sequence", \u044F\u0432\u043B\u044F\u044E\u0449\u0438\u0439\u0441\u044F \u043A\u043E\u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043D\u044B\u043C.',
|
|
36205
36277
|
keyNotRequired: '"{name}" \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u043C \u043A\u043B\u044E\u0447\u043E\u043C \u0432 "{type}", \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u0434\u043E\u0441\u0442\u0443\u043F \u043C\u043E\u0436\u0435\u0442 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u0438\u0441\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F',
|
|
36206
36278
|
keyReadOnly: '"{name}" \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043A\u043B\u044E\u0447\u043E\u043C \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0447\u0442\u0435\u043D\u0438\u044F \u0432 "{type}"',
|
|
36207
36279
|
keyRequiredDeleted: '"{name}" \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u043C \u043A\u043B\u044E\u0447\u043E\u043C \u0438 \u043D\u0435 \u043F\u043E\u0434\u043B\u0435\u0436\u0438\u0442 \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044E',
|
|
@@ -36396,6 +36468,7 @@ var require_package_nls_tr = __commonJS({
|
|
|
36396
36468
|
classMethodClsParam: 'S\u0131n\u0131f metotlar\u0131 bir "cls" parametresi almal\u0131d\u0131r',
|
|
36397
36469
|
classNotRuntimeSubscriptable: '"{name}" s\u0131n\u0131f\u0131na ait alt simge \xE7al\u0131\u015Fma zaman\u0131 \xF6zel durumunu olu\u015Fturur; t\xFCr ek a\xE7\u0131klamalar\u0131n\u0131 t\u0131rnak i\xE7ine al\u0131n',
|
|
36398
36470
|
classPatternBuiltInArgPositional: "S\u0131n\u0131f deseni yaln\u0131zca konumsal alt desen kabul eder",
|
|
36471
|
+
classPatternPositionalArgCount: '"{type}" s\u0131n\u0131f\u0131 i\xE7in \xE7ok fazla konumsal desen var; {expected} bekleniyordu ancak {received} al\u0131nd\u0131',
|
|
36399
36472
|
classPatternTypeAlias: '"{type}" \xF6zel bir t\xFCr di\u011Fer ad\u0131 oldu\u011Fundan s\u0131n\u0131f deseninde kullan\u0131lamaz',
|
|
36400
36473
|
classTypeParametersIllegal: "S\u0131n\u0131f t\xFCr\xFC parametresi s\xF6z dizimi i\xE7in Python 3.12 veya daha yeni bir s\xFCr\xFCm\xFC gerekiyor",
|
|
36401
36474
|
classVarFirstArgMissing: '"ClassVar" sonras\u0131nda t\xFCr ba\u011F\u0131ms\u0131z de\u011Fi\u015Fkeni bekleniyordu',
|
|
@@ -36927,6 +37000,7 @@ var require_package_nls_tr = __commonJS({
|
|
|
36927
37000
|
baseClassIncompatibleSubclass: '"{baseClass}" temel s\u0131n\u0131f\u0131, "{type}" t\xFCr\xFCyle uyumlu olmayan "{subclass}" alt s\u0131n\u0131f\u0131ndan t\xFCretiliyor',
|
|
36928
37001
|
baseClassOverriddenType: '"{baseClass}" temel s\u0131n\u0131f\u0131 ge\xE7ersiz k\u0131l\u0131nan "{type}" t\xFCr\xFCn\xFC sa\u011Flar',
|
|
36929
37002
|
baseClassOverridesType: 'Temel s\u0131n\u0131f "{baseClass}", "{type}" t\xFCr\xFCn\xFC ge\xE7ersiz k\u0131l\u0131yor',
|
|
37003
|
+
bytesTypePromotions: "\u201Cbytearray\u201D ve \u201Cmemoryview\u201D i\xE7in t\xFCr y\xFCkseltme davran\u0131\u015F\u0131n\u0131 etkinle\u015Ftirmek i\xE7in disableBytesTypePromotions se\xE7ene\u011Fini \u201Cfalse\u201D olarak ayarlay\u0131n",
|
|
36930
37004
|
conditionalRequiresBool: '"{operandType}" t\xFCr\xFC i\xE7in __bool__ metodu "bool" yerine "{boolReturnType}" t\xFCr\xFC d\xF6nd\xFCr\xFCr',
|
|
36931
37005
|
dataClassFieldLocation: "Alan bildirimi",
|
|
36932
37006
|
dataClassFrozen: '"{name}" donduruldu',
|
|
@@ -36941,6 +37015,8 @@ var require_package_nls_tr = __commonJS({
|
|
|
36941
37015
|
incompatibleSetter: "\xD6zellik ayarlay\u0131c\u0131 metodu uyumsuz",
|
|
36942
37016
|
initMethodLocation: '"{type}" s\u0131n\u0131f\u0131 i\xE7inde __init__ metodu tan\u0131mland\u0131',
|
|
36943
37017
|
initMethodSignature: '__init__ imzas\u0131 "{type}"',
|
|
37018
|
+
invariantSuggestionDict: "\u201Cdict\u201D \xF6\u011Fesinden de\u011Fer t\xFCr\xFCnde e\u015F de\u011Fi\u015Fken olan \u201CMapping\u201D \xF6\u011Fesine ge\xE7meyi deneyin",
|
|
37019
|
+
invariantSuggestionList: "\u201Clist\u201D \xF6\u011Fesinden e\u015F de\u011Fi\u015Fken olan \u201CSequence\u201D \xF6\u011Fesine ge\xE7meyi deneyin",
|
|
36944
37020
|
keyNotRequired: '"{name}", "{type}" t\xFCr\xFCnde gerekli bir anahtar olmad\u0131\u011F\u0131ndan \xE7al\u0131\u015Fma zaman\u0131 \xF6zel durumuna neden olabilir',
|
|
36945
37021
|
keyReadOnly: '"{name}", "{type}" i\xE7inde salt okunur',
|
|
36946
37022
|
keyRequiredDeleted: '"{name}" gerekli bir anahtar oldu\u011Fundan silinemez',
|
|
@@ -37135,6 +37211,7 @@ var require_package_nls_zh_cn = __commonJS({
|
|
|
37135
37211
|
classMethodClsParam: "\u7C7B\u65B9\u6CD5\u5E94\u91C7\u7528\u201Ccls\u201D\u53C2\u6570",
|
|
37136
37212
|
classNotRuntimeSubscriptable: "\u7C7B\u201C{name}\u201D\u7684\u4E0B\u6807\u5C06\u751F\u6210\u8FD0\u884C\u65F6\u5F02\u5E38\uFF1B\u5C06\u7C7B\u578B\u6279\u6CE8\u62EC\u5728\u5F15\u53F7\u4E2D",
|
|
37137
37213
|
classPatternBuiltInArgPositional: "\u7C7B\u6A21\u5F0F\u4EC5\u63A5\u53D7\u4F4D\u7F6E\u5B50\u6A21\u5F0F",
|
|
37214
|
+
classPatternPositionalArgCount: "\u7C7B\u201C{type}\u201D\u7684\u4F4D\u7F6E\u6A21\u5F0F\u592A\u591A; \u5E94\u4E3A {expected}\uFF0C\u4F46\u6536\u5230\u4E86 {received}",
|
|
37138
37215
|
classPatternTypeAlias: "\u65E0\u6CD5\u5728\u7C7B\u6A21\u5F0F\u4E2D\u4F7F\u7528\u201C{type}\u201D\uFF0C\u56E0\u4E3A\u5B83\u662F\u4E13\u7528\u7C7B\u578B\u522B\u540D",
|
|
37139
37216
|
classTypeParametersIllegal: "\u7C7B\u7C7B\u578B\u53C2\u6570\u8BED\u6CD5\u9700\u8981 Python 3.12 \u6216\u66F4\u9AD8\u7248\u672C",
|
|
37140
37217
|
classVarFirstArgMissing: '"ClassVar"\u540E\u5E94\u4E3A\u7C7B\u578B\u53C2\u6570',
|
|
@@ -37666,6 +37743,7 @@ var require_package_nls_zh_cn = __commonJS({
|
|
|
37666
37743
|
baseClassIncompatibleSubclass: "\u57FA\u7C7B\u201C{baseClass}\u201D\u6D3E\u751F\u81EA\u4E0E\u7C7B\u578B\u201C{type}\u201D\u4E0D\u517C\u5BB9\u7684\u201C{subclass}\u201D",
|
|
37667
37744
|
baseClassOverriddenType: '\u57FA\u7C7B"{baseClass}"\u63D0\u4F9B\u88AB\u66FF\u4EE3\u7684\u7C7B\u578B"{type}"',
|
|
37668
37745
|
baseClassOverridesType: "\u57FA\u7C7B\u201C{baseClass}\u201D\u66FF\u4EE3\u7C7B\u578B{type}\u201D",
|
|
37746
|
+
bytesTypePromotions: "\u5C06 disableBytesTypePromotions \u8BBE\u7F6E\u4E3A false\uFF0C\u4EE5\u542F\u7528\u201Cbytearray\u201D\u548C\u201Cmemoryview\u201D\u7684\u7C7B\u578B\u63D0\u5347\u884C\u4E3A",
|
|
37669
37747
|
conditionalRequiresBool: "\u7C7B\u578B\u201C{operandType}\u201D\u7684\u65B9\u6CD5__bool__\u8FD4\u56DE\u7C7B\u578B\u201C{boolReturnType}\u201D\u800C\u4E0D\u662F\u201Cbool\u201D",
|
|
37670
37748
|
dataClassFieldLocation: "\u5B57\u6BB5\u58F0\u660E",
|
|
37671
37749
|
dataClassFrozen: '"{name}"\u5DF2\u51BB\u7ED3',
|
|
@@ -37680,6 +37758,8 @@ var require_package_nls_zh_cn = __commonJS({
|
|
|
37680
37758
|
incompatibleSetter: "\u5C5E\u6027 setter \u65B9\u6CD5\u4E0D\u517C\u5BB9",
|
|
37681
37759
|
initMethodLocation: "__init__\u65B9\u6CD5\u5DF2\u5728\u7C7B\u201C{type}\u201D\u4E2D\u5B9A\u4E49",
|
|
37682
37760
|
initMethodSignature: "__init__\u7684\u7B7E\u540D\u4E3A\u201C{type}\u201D",
|
|
37761
|
+
invariantSuggestionDict: "\u8BF7\u8003\u8651\u4ECE \u201Cdict\u201D \u5207\u6362\u5230 \u201CMapping\u201D(\u5728\u503C\u7C7B\u578B\u4E2D\u4E3A\u534F\u53D8)",
|
|
37762
|
+
invariantSuggestionList: "\u8003\u8651\u4ECE\u201Clist\u201D\u5207\u6362\u5230\u201CSequence\u201D(\u534F\u53D8)",
|
|
37683
37763
|
keyNotRequired: "\u201C{type}\u201D\u4E2D\u201C{name}\u201D\u4E0D\u662F\u5FC5\u9700\u7684\u5BC6\u94A5\uFF0C\u56E0\u6B64\u8BBF\u95EE\u53EF\u80FD\u4F1A\u5BFC\u81F4\u8FD0\u884C\u65F6\u5F02\u5E38",
|
|
37684
37764
|
keyReadOnly: "\u201C{name}\u201D\u662F\u201C{type}\u201D\u4E2D\u7684\u53EA\u8BFB\u5BC6\u94A5",
|
|
37685
37765
|
keyRequiredDeleted: "\u201C{name}\u201D\u662F\u5FC5\u9700\u7684\u5BC6\u94A5\uFF0C\u65E0\u6CD5\u5220\u9664",
|
|
@@ -37874,6 +37954,7 @@ var require_package_nls_zh_tw = __commonJS({
|
|
|
37874
37954
|
classMethodClsParam: '\u985E\u5225\u65B9\u6CD5\u61C9\u63A1\u7528 "cls" \u53C3\u6578',
|
|
37875
37955
|
classNotRuntimeSubscriptable: '\u985E\u5225 "{name}" \u7684\u4E0B\u6A19\u6703\u7522\u751F\u57F7\u884C\u968E\u6BB5\u4F8B\u5916; \u4EE5\u5F15\u865F\u62EC\u4F4F\u985E\u578B\u8A3B\u91CB',
|
|
37876
37956
|
classPatternBuiltInArgPositional: "\u985E\u5225\u6A21\u5F0F\u50C5\u63A5\u53D7\u4F4D\u7F6E\u5B50\u6A21\u5F0F",
|
|
37957
|
+
classPatternPositionalArgCount: '\u985E\u5225 "{type}" \u7684\u4F4D\u7F6E\u6A21\u5F0F\u592A\u591A;\u9810\u671F {expected} \u4F46\u6536\u5230 {received}',
|
|
37877
37958
|
classPatternTypeAlias: '\u7121\u6CD5\u5728\u985E\u5225\u6A21\u5F0F\u4E2D\u4F7F\u7528 "{type}"\uFF0C\u56E0\u70BA\u5B83\u662F\u7279\u6B8A\u7684\u578B\u5225\u5225\u540D',
|
|
37878
37959
|
classTypeParametersIllegal: "\u985E\u5225\u985E\u578B\u53C3\u6578\u8A9E\u6CD5\u9700\u8981 Python 3.12 \u6216\u66F4\u65B0\u7248\u672C",
|
|
37879
37960
|
classVarFirstArgMissing: '"ClassVar" \u5F8C\u9762\u61C9\u6709\u4E00\u500B\u578B\u5225\u5F15\u6578',
|
|
@@ -38405,6 +38486,7 @@ var require_package_nls_zh_tw = __commonJS({
|
|
|
38405
38486
|
baseClassIncompatibleSubclass: '\u57FA\u5E95\u985E\u5225 "{baseClass}" \u884D\u751F\u81EA\u8207\u985E\u578B "{type}" \u4E0D\u76F8\u5BB9\u7684 "{subclass}"',
|
|
38406
38487
|
baseClassOverriddenType: '\u57FA\u5E95\u985E\u5225 "{baseClass}" \u63D0\u4F9B\u985E\u578B "{type}"\uFF0C\u5176\u5DF2\u8986\u5BEB',
|
|
38407
38488
|
baseClassOverridesType: '\u57FA\u5E95\u985E\u5225 "{baseClass}" \u4EE5\u578B\u5225 "{type}" \u4F86\u8986\u5BEB',
|
|
38489
|
+
bytesTypePromotions: "\u5C07 disableBytesTypePromotions \u8A2D\u5B9A\u70BA false\uFF0C\u4EE5\u555F\u7528\u300Cbytearray\u300D\u548C\u300Cmemoryview\u300D\u7684\u985E\u578B\u5347\u7D1A\u884C\u70BA",
|
|
38408
38490
|
conditionalRequiresBool: '\u985E\u578B "{operandType}" \u7684\u65B9\u6CD5 __bool__ \u50B3\u56DE\u985E\u578B "{boolReturnType}" \u800C\u975E "bool"',
|
|
38409
38491
|
dataClassFieldLocation: "\u6B04\u4F4D\u5BA3\u544A",
|
|
38410
38492
|
dataClassFrozen: '"{name}" \u5DF2\u51CD\u7D50',
|
|
@@ -38419,6 +38501,8 @@ var require_package_nls_zh_tw = __commonJS({
|
|
|
38419
38501
|
incompatibleSetter: "\u5C6C\u6027 setter \u65B9\u6CD5\u4E0D\u76F8\u5BB9",
|
|
38420
38502
|
initMethodLocation: '__init__ \u65B9\u6CD5\u65BC\u985E\u5225 "{type}" \u4E2D\u5B9A\u7FA9',
|
|
38421
38503
|
initMethodSignature: '__init__ \u7684\u7C3D\u7AE0\u70BA "{type}"',
|
|
38504
|
+
invariantSuggestionDict: "\u8ACB\u8003\u616E\u5F9E\u300Cdict\u300D\u5207\u63DB\u5230\u5BE6\u503C\u578B\u5225\u4E2D\u5171\u8B8A\u6578\u7684\u300CMapping\u300D",
|
|
38505
|
+
invariantSuggestionList: "\u8ACB\u8003\u616E\u5F9E\u5171\u8B8A\u6578\u7684\u300Clist\u300D\u5207\u63DB\u5230\u300CSequence\u300D",
|
|
38422
38506
|
keyNotRequired: '"{name}" \u5728 "{type}" \u4E2D\u4E0D\u662F\u5FC5\u8981\u7684\u7D22\u5F15\u9375\uFF0C\u56E0\u6B64\u5B58\u53D6\u53EF\u80FD\u6703\u5C0E\u81F4\u57F7\u884C\u968E\u6BB5\u4F8B\u5916\u72C0\u6CC1',
|
|
38423
38507
|
keyReadOnly: '"{name}" \u662F "{type}" \u4E2D\u7684\u552F\u8B80\u91D1\u9470',
|
|
38424
38508
|
keyRequiredDeleted: '"{name}" \u662F\u5FC5\u8981\u7684\u91D1\u9470\uFF0C\u56E0\u6B64\u4E0D\u80FD\u522A\u9664',
|
|
@@ -38795,8 +38879,14 @@ var require_localize = __commonJS({
|
|
|
38795
38879
|
Diagnostic6.defaultValueNotAllowed = () => getRawString("Diagnostic.defaultValueNotAllowed");
|
|
38796
38880
|
Diagnostic6.deprecatedClass = () => new ParameterizedString(getRawString("Diagnostic.deprecatedClass"));
|
|
38797
38881
|
Diagnostic6.deprecatedConstructor = () => new ParameterizedString(getRawString("Diagnostic.deprecatedConstructor"));
|
|
38882
|
+
Diagnostic6.deprecatedDescriptorDeleter = () => new ParameterizedString(getRawString("Diagnostic.deprecatedDescriptorDeleter"));
|
|
38883
|
+
Diagnostic6.deprecatedDescriptorGetter = () => new ParameterizedString(getRawString("Diagnostic.deprecatedDescriptorGetter"));
|
|
38884
|
+
Diagnostic6.deprecatedDescriptorSetter = () => new ParameterizedString(getRawString("Diagnostic.deprecatedDescriptorSetter"));
|
|
38798
38885
|
Diagnostic6.deprecatedFunction = () => new ParameterizedString(getRawString("Diagnostic.deprecatedFunction"));
|
|
38799
38886
|
Diagnostic6.deprecatedMethod = () => new ParameterizedString(getRawString("Diagnostic.deprecatedMethod"));
|
|
38887
|
+
Diagnostic6.deprecatedPropertyDeleter = () => new ParameterizedString(getRawString("Diagnostic.deprecatedPropertyDeleter"));
|
|
38888
|
+
Diagnostic6.deprecatedPropertyGetter = () => new ParameterizedString(getRawString("Diagnostic.deprecatedPropertyGetter"));
|
|
38889
|
+
Diagnostic6.deprecatedPropertySetter = () => new ParameterizedString(getRawString("Diagnostic.deprecatedPropertySetter"));
|
|
38800
38890
|
Diagnostic6.deprecatedType = () => new ParameterizedString(getRawString("Diagnostic.deprecatedType"));
|
|
38801
38891
|
Diagnostic6.dictExpandIllegalInComprehension = () => getRawString("Diagnostic.dictExpandIllegalInComprehension");
|
|
38802
38892
|
Diagnostic6.dictInAnnotation = () => getRawString("Diagnostic.dictInAnnotation");
|
|
@@ -39329,6 +39419,7 @@ var require_localize = __commonJS({
|
|
|
39329
39419
|
DiagnosticAddendum2.newMethodSignature = () => new ParameterizedString(getRawString("DiagnosticAddendum.newMethodSignature"));
|
|
39330
39420
|
DiagnosticAddendum2.noOverloadAssignable = () => new ParameterizedString(getRawString("DiagnosticAddendum.noOverloadAssignable"));
|
|
39331
39421
|
DiagnosticAddendum2.orPatternMissingName = () => new ParameterizedString(getRawString("DiagnosticAddendum.orPatternMissingName"));
|
|
39422
|
+
DiagnosticAddendum2.overloadIndex = () => new ParameterizedString(getRawString("DiagnosticAddendum.overloadIndex"));
|
|
39332
39423
|
DiagnosticAddendum2.overloadSignature = () => getRawString("DiagnosticAddendum.overloadSignature");
|
|
39333
39424
|
DiagnosticAddendum2.overloadNotAssignable = () => new ParameterizedString(getRawString("DiagnosticAddendum.overloadNotAssignable"));
|
|
39334
39425
|
DiagnosticAddendum2.overriddenMethod = () => getRawString("DiagnosticAddendum.overriddenMethod");
|
|
@@ -41624,7 +41715,8 @@ var require_scopeUtils = __commonJS({
|
|
|
41624
41715
|
const scopeHierarchy = [];
|
|
41625
41716
|
let curNode = node;
|
|
41626
41717
|
while (curNode) {
|
|
41627
|
-
const
|
|
41718
|
+
const scopeNode = (0, parseTreeUtils_1.getEvaluationScopeNode)(curNode);
|
|
41719
|
+
const curScope = (0, analyzerNodeInfo_1.getScope)(scopeNode);
|
|
41628
41720
|
if (!curScope) {
|
|
41629
41721
|
return void 0;
|
|
41630
41722
|
}
|
|
@@ -41634,7 +41726,7 @@ var require_scopeUtils = __commonJS({
|
|
|
41634
41726
|
if (curScope === stopScope) {
|
|
41635
41727
|
return scopeHierarchy;
|
|
41636
41728
|
}
|
|
41637
|
-
curNode =
|
|
41729
|
+
curNode = scopeNode.parent;
|
|
41638
41730
|
}
|
|
41639
41731
|
return stopScope ? void 0 : scopeHierarchy;
|
|
41640
41732
|
}
|
|
@@ -42405,22 +42497,22 @@ var require_typeGuards = __commonJS({
|
|
|
42405
42497
|
});
|
|
42406
42498
|
return foundNonClassType ? void 0 : classTypeList;
|
|
42407
42499
|
}
|
|
42408
|
-
function isIsinstanceFilterSuperclass(evaluator, varType, filterType, concreteFilterType, isInstanceCheck) {
|
|
42409
|
-
if (concreteFilterType.includeSubclasses) {
|
|
42410
|
-
return false;
|
|
42411
|
-
}
|
|
42500
|
+
function isIsinstanceFilterSuperclass(evaluator, varType, concreteVarType, filterType, concreteFilterType, isInstanceCheck) {
|
|
42412
42501
|
if ((0, types_1.isTypeVar)(filterType)) {
|
|
42502
|
+
return (0, types_1.isTypeSame)((0, typeUtils_1.convertToInstance)(filterType), varType);
|
|
42503
|
+
}
|
|
42504
|
+
if (concreteFilterType.includeSubclasses) {
|
|
42413
42505
|
return false;
|
|
42414
42506
|
}
|
|
42415
|
-
if (types_1.ClassType.isDerivedFrom(
|
|
42507
|
+
if (types_1.ClassType.isDerivedFrom(concreteVarType, concreteFilterType)) {
|
|
42416
42508
|
return true;
|
|
42417
42509
|
}
|
|
42418
42510
|
if (isInstanceCheck) {
|
|
42419
|
-
if (types_1.ClassType.isProtocolClass(concreteFilterType) && evaluator.assignType(concreteFilterType,
|
|
42511
|
+
if (types_1.ClassType.isProtocolClass(concreteFilterType) && evaluator.assignType(concreteFilterType, concreteVarType)) {
|
|
42420
42512
|
return true;
|
|
42421
42513
|
}
|
|
42422
42514
|
}
|
|
42423
|
-
if (types_1.ClassType.isBuiltIn(concreteFilterType, "dict") && types_1.ClassType.isTypedDictClass(
|
|
42515
|
+
if (types_1.ClassType.isBuiltIn(concreteFilterType, "dict") && types_1.ClassType.isTypedDictClass(concreteVarType)) {
|
|
42424
42516
|
return true;
|
|
42425
42517
|
}
|
|
42426
42518
|
return false;
|
|
@@ -42443,27 +42535,27 @@ var require_typeGuards = __commonJS({
|
|
|
42443
42535
|
return (0, typeUtils_1.transformPossibleRecursiveTypeAlias)(subtype);
|
|
42444
42536
|
});
|
|
42445
42537
|
expandedTypes = evaluator.expandPromotionTypes(errorNode, type);
|
|
42446
|
-
const filterClassType = (varType,
|
|
42538
|
+
const filterClassType = (varType, concreteVarType, conditions, negativeFallbackType) => {
|
|
42447
42539
|
const filteredTypes = [];
|
|
42448
42540
|
let foundSuperclass = false;
|
|
42449
42541
|
let isClassRelationshipIndeterminate = false;
|
|
42450
42542
|
for (const filterType of classTypeList) {
|
|
42451
42543
|
const concreteFilterType = evaluator.makeTopLevelTypeVarsConcrete(filterType);
|
|
42452
42544
|
if ((0, types_1.isInstantiableClass)(concreteFilterType)) {
|
|
42453
|
-
const filterIsSuperclass = isIsinstanceFilterSuperclass(evaluator, varType, filterType, concreteFilterType, isInstanceCheck);
|
|
42454
|
-
const filterIsSubclass = isIsinstanceFilterSubclass(evaluator,
|
|
42545
|
+
const filterIsSuperclass = isIsinstanceFilterSuperclass(evaluator, varType, concreteVarType, filterType, concreteFilterType, isInstanceCheck);
|
|
42546
|
+
const filterIsSubclass = isIsinstanceFilterSubclass(evaluator, concreteVarType, concreteFilterType, isInstanceCheck);
|
|
42455
42547
|
if (filterIsSuperclass) {
|
|
42456
42548
|
foundSuperclass = true;
|
|
42457
42549
|
}
|
|
42458
|
-
if (filterIsSubclass && filterIsSuperclass && !types_1.ClassType.isSameGenericClass(
|
|
42550
|
+
if (filterIsSubclass && filterIsSuperclass && !types_1.ClassType.isSameGenericClass(concreteVarType, concreteFilterType)) {
|
|
42459
42551
|
isClassRelationshipIndeterminate = true;
|
|
42460
42552
|
}
|
|
42461
42553
|
if (isPositiveTest) {
|
|
42462
42554
|
if (filterIsSuperclass) {
|
|
42463
|
-
filteredTypes.push((0, typeUtils_1.addConditionToType)(
|
|
42555
|
+
filteredTypes.push((0, typeUtils_1.addConditionToType)(concreteVarType, conditions));
|
|
42464
42556
|
} else if (filterIsSubclass) {
|
|
42465
42557
|
if (evaluator.assignType(
|
|
42466
|
-
|
|
42558
|
+
concreteVarType,
|
|
42467
42559
|
filterType,
|
|
42468
42560
|
/* diag */
|
|
42469
42561
|
void 0,
|
|
@@ -42488,7 +42580,7 @@ var require_typeGuards = __commonJS({
|
|
|
42488
42580
|
if ((0, constraintSolver_1.populateTypeVarContextBasedOnExpectedType)(
|
|
42489
42581
|
evaluator,
|
|
42490
42582
|
unspecializedFilterType,
|
|
42491
|
-
|
|
42583
|
+
concreteVarType,
|
|
42492
42584
|
typeVarContext,
|
|
42493
42585
|
/* liveTypeVarScopes */
|
|
42494
42586
|
void 0,
|
|
@@ -42498,12 +42590,12 @@ var require_typeGuards = __commonJS({
|
|
|
42498
42590
|
}
|
|
42499
42591
|
}
|
|
42500
42592
|
}
|
|
42501
|
-
filteredTypes.push((0, typeUtils_1.addConditionToType)(specializedFilterType,
|
|
42593
|
+
filteredTypes.push((0, typeUtils_1.addConditionToType)(specializedFilterType, conditions));
|
|
42502
42594
|
}
|
|
42503
|
-
} else if (allowIntersections && !types_1.ClassType.isFinal(
|
|
42504
|
-
const className = `<subclass of ${
|
|
42595
|
+
} else if (allowIntersections && !types_1.ClassType.isFinal(concreteVarType) && !types_1.ClassType.isFinal(concreteFilterType)) {
|
|
42596
|
+
const className = `<subclass of ${concreteVarType.details.name} and ${concreteFilterType.details.name}>`;
|
|
42505
42597
|
const fileInfo = (0, analyzerNodeInfo_1.getFileInfo)(errorNode);
|
|
42506
|
-
let effectiveMetaclass =
|
|
42598
|
+
let effectiveMetaclass = concreteVarType.details.effectiveMetaclass;
|
|
42507
42599
|
if (concreteFilterType.details.effectiveMetaclass) {
|
|
42508
42600
|
if (!effectiveMetaclass || evaluator.assignType(effectiveMetaclass, concreteFilterType.details.effectiveMetaclass)) {
|
|
42509
42601
|
effectiveMetaclass = concreteFilterType.details.effectiveMetaclass;
|
|
@@ -42519,51 +42611,56 @@ var require_typeGuards = __commonJS({
|
|
|
42519
42611
|
/* declaredMetaclass */
|
|
42520
42612
|
void 0,
|
|
42521
42613
|
effectiveMetaclass,
|
|
42522
|
-
|
|
42614
|
+
concreteVarType.details.docString
|
|
42523
42615
|
);
|
|
42524
|
-
newClassType.details.baseClasses = [
|
|
42616
|
+
newClassType.details.baseClasses = [
|
|
42617
|
+
types_1.ClassType.cloneAsInstantiable(concreteVarType),
|
|
42618
|
+
concreteFilterType
|
|
42619
|
+
];
|
|
42525
42620
|
(0, typeUtils_1.computeMroLinearization)(newClassType);
|
|
42526
42621
|
newClassType = (0, typeUtils_1.addConditionToType)(newClassType, concreteFilterType.condition);
|
|
42527
|
-
if ((0, types_1.isTypeVar)(
|
|
42622
|
+
if ((0, types_1.isTypeVar)(varType) && !varType.details.isParamSpec && varType.details.constraints.length === 0) {
|
|
42528
42623
|
newClassType = (0, typeUtils_1.addConditionToType)(newClassType, [
|
|
42529
42624
|
{
|
|
42530
|
-
typeVarName: types_1.TypeVarType.getNameWithScope(
|
|
42625
|
+
typeVarName: types_1.TypeVarType.getNameWithScope(varType),
|
|
42531
42626
|
constraintIndex: 0,
|
|
42532
42627
|
isConstrainedTypeVar: false
|
|
42533
42628
|
}
|
|
42534
42629
|
]);
|
|
42535
42630
|
}
|
|
42536
42631
|
let newClassInstanceType = types_1.ClassType.cloneAsInstance(newClassType);
|
|
42537
|
-
if (
|
|
42538
|
-
newClassInstanceType = (0, typeUtils_1.addConditionToType)(newClassInstanceType,
|
|
42632
|
+
if (concreteVarType.condition) {
|
|
42633
|
+
newClassInstanceType = (0, typeUtils_1.addConditionToType)(newClassInstanceType, concreteVarType.condition);
|
|
42539
42634
|
}
|
|
42540
42635
|
filteredTypes.push(isInstanceCheck ? newClassInstanceType : types_1.ClassType.cloneAsInstantiable(newClassInstanceType));
|
|
42541
42636
|
}
|
|
42542
42637
|
}
|
|
42543
42638
|
} else if ((0, types_1.isTypeVar)(filterType) && types_1.TypeBase.isInstantiable(filterType)) {
|
|
42544
|
-
if (isInstanceCheck && types_1.TypeBase.isInstance(
|
|
42545
|
-
if ((0, types_1.isTypeVar)(
|
|
42639
|
+
if (isInstanceCheck && types_1.TypeBase.isInstance(varType)) {
|
|
42640
|
+
if ((0, types_1.isTypeVar)(varType) && (0, types_1.isTypeSame)((0, typeUtils_1.convertToInstance)(filterType), varType)) {
|
|
42546
42641
|
if (isPositiveTest) {
|
|
42547
|
-
filteredTypes.push(
|
|
42642
|
+
filteredTypes.push(varType);
|
|
42643
|
+
} else {
|
|
42644
|
+
foundSuperclass = true;
|
|
42548
42645
|
}
|
|
42549
42646
|
} else {
|
|
42550
42647
|
if (isPositiveTest) {
|
|
42551
42648
|
filteredTypes.push((0, typeUtils_1.convertToInstance)(filterType));
|
|
42552
42649
|
} else {
|
|
42553
|
-
filteredTypes.push(
|
|
42650
|
+
filteredTypes.push(varType);
|
|
42554
42651
|
isClassRelationshipIndeterminate = true;
|
|
42555
42652
|
}
|
|
42556
42653
|
}
|
|
42557
|
-
} else if (!isInstanceCheck && types_1.TypeBase.isInstantiable(
|
|
42558
|
-
if ((0, types_1.isTypeVar)(
|
|
42654
|
+
} else if (!isInstanceCheck && types_1.TypeBase.isInstantiable(varType)) {
|
|
42655
|
+
if ((0, types_1.isTypeVar)(varType) && (0, types_1.isTypeSame)(filterType, varType)) {
|
|
42559
42656
|
if (isPositiveTest) {
|
|
42560
|
-
filteredTypes.push(
|
|
42657
|
+
filteredTypes.push(varType);
|
|
42561
42658
|
}
|
|
42562
42659
|
} else {
|
|
42563
42660
|
if (isPositiveTest) {
|
|
42564
42661
|
filteredTypes.push(filterType);
|
|
42565
42662
|
} else {
|
|
42566
|
-
filteredTypes.push(
|
|
42663
|
+
filteredTypes.push(varType);
|
|
42567
42664
|
isClassRelationshipIndeterminate = true;
|
|
42568
42665
|
}
|
|
42569
42666
|
}
|
|
@@ -42571,12 +42668,12 @@ var require_typeGuards = __commonJS({
|
|
|
42571
42668
|
} else if ((0, types_1.isFunction)(filterType)) {
|
|
42572
42669
|
if (isInstanceCheck) {
|
|
42573
42670
|
let isCallable = false;
|
|
42574
|
-
if ((0, types_1.isClass)(
|
|
42575
|
-
if (types_1.TypeBase.isInstantiable(
|
|
42671
|
+
if ((0, types_1.isClass)(concreteVarType)) {
|
|
42672
|
+
if (types_1.TypeBase.isInstantiable(varType)) {
|
|
42576
42673
|
isCallable = true;
|
|
42577
42674
|
} else {
|
|
42578
42675
|
isCallable = !!(0, typeUtils_1.lookUpClassMember)(
|
|
42579
|
-
|
|
42676
|
+
concreteVarType,
|
|
42580
42677
|
"__call__",
|
|
42581
42678
|
8
|
|
42582
42679
|
/* SkipInstanceVariables */
|
|
@@ -42585,10 +42682,14 @@ var require_typeGuards = __commonJS({
|
|
|
42585
42682
|
}
|
|
42586
42683
|
if (isCallable) {
|
|
42587
42684
|
if (isPositiveTest) {
|
|
42588
|
-
filteredTypes.push(
|
|
42685
|
+
filteredTypes.push(varType);
|
|
42589
42686
|
} else {
|
|
42590
42687
|
foundSuperclass = true;
|
|
42591
42688
|
}
|
|
42689
|
+
} else if (evaluator.assignType(concreteVarType, filterType)) {
|
|
42690
|
+
if (isPositiveTest) {
|
|
42691
|
+
filteredTypes.push(filterType);
|
|
42692
|
+
}
|
|
42592
42693
|
}
|
|
42593
42694
|
}
|
|
42594
42695
|
}
|
|
@@ -42682,7 +42783,7 @@ var require_typeGuards = __commonJS({
|
|
|
42682
42783
|
}
|
|
42683
42784
|
}
|
|
42684
42785
|
if ((0, types_1.isClassInstance)(subtype) && !isSubtypeTypeObject) {
|
|
42685
|
-
return (0, types_1.combineTypes)(filterClassType(
|
|
42786
|
+
return (0, types_1.combineTypes)(filterClassType((0, typeUtils_1.convertToInstance)(unexpandedSubtype), types_1.ClassType.cloneAsInstantiable(subtype), (0, typeUtils_1.getTypeCondition)(subtype), negativeFallback));
|
|
42686
42787
|
}
|
|
42687
42788
|
if (((0, types_1.isFunction)(subtype) || (0, types_1.isOverloadedFunction)(subtype)) && isInstanceCheck) {
|
|
42688
42789
|
return (0, types_1.combineTypes)(filterFunctionType(subtype, (0, typeUtils_1.convertToInstance)(unexpandedSubtype)));
|
|
@@ -42697,12 +42798,12 @@ var require_typeGuards = __commonJS({
|
|
|
42697
42798
|
}
|
|
42698
42799
|
} else {
|
|
42699
42800
|
if ((0, types_1.isInstantiableClass)(subtype)) {
|
|
42700
|
-
return (0, types_1.combineTypes)(filterClassType(
|
|
42801
|
+
return (0, types_1.combineTypes)(filterClassType(unexpandedSubtype, subtype, (0, typeUtils_1.getTypeCondition)(subtype), negativeFallback));
|
|
42701
42802
|
}
|
|
42702
42803
|
if (isSubtypeTypeObject) {
|
|
42703
42804
|
const objectType = evaluator.getBuiltInObject(errorNode, "object");
|
|
42704
42805
|
if (objectType && (0, types_1.isClassInstance)(objectType)) {
|
|
42705
|
-
return (0, types_1.combineTypes)(filterClassType(
|
|
42806
|
+
return (0, types_1.combineTypes)(filterClassType((0, typeUtils_1.convertToInstantiable)(unexpandedSubtype), types_1.ClassType.cloneAsInstantiable(objectType), (0, typeUtils_1.getTypeCondition)(subtype), negativeFallback));
|
|
42706
42807
|
}
|
|
42707
42808
|
}
|
|
42708
42809
|
}
|
|
@@ -43044,6 +43145,7 @@ var require_typeGuards = __commonJS({
|
|
|
43044
43145
|
if ((0, types_1.isInstantiableClass)(concreteSubtype) && types_1.ClassType.isFinal(concreteSubtype)) {
|
|
43045
43146
|
if (!types_1.ClassType.isSameGenericClass(concreteSubtype, classType) && !isIsinstanceFilterSuperclass(
|
|
43046
43147
|
evaluator,
|
|
43148
|
+
subtype,
|
|
43047
43149
|
concreteSubtype,
|
|
43048
43150
|
classType,
|
|
43049
43151
|
classType,
|
|
@@ -44985,14 +45087,19 @@ var require_codeFlowEngine = __commonJS({
|
|
|
44985
45087
|
);
|
|
44986
45088
|
}
|
|
44987
45089
|
let effectiveType = cacheEntry.type;
|
|
45090
|
+
let cleanedIncompleteUnknowns = false;
|
|
44988
45091
|
if (sawIncomplete) {
|
|
44989
45092
|
if (effectiveType) {
|
|
44990
|
-
|
|
45093
|
+
const cleanedType = (0, types_1.cleanIncompleteUnknown)(effectiveType);
|
|
45094
|
+
if (cleanedType !== effectiveType) {
|
|
45095
|
+
effectiveType = cleanedType;
|
|
45096
|
+
cleanedIncompleteUnknowns = true;
|
|
45097
|
+
}
|
|
44991
45098
|
}
|
|
44992
45099
|
}
|
|
44993
45100
|
if (!sawIncomplete || attemptCount >= maxAttemptCount) {
|
|
44994
45101
|
let reportIncomplete = sawIncomplete;
|
|
44995
|
-
if (!sawPending && effectiveType && !(0, typeUtils_1.isIncompleteUnknown)(effectiveType) && !firstAntecedentTypeIsIncomplete) {
|
|
45102
|
+
if (sawIncomplete && !sawPending && effectiveType && !(0, typeUtils_1.isIncompleteUnknown)(effectiveType) && !firstAntecedentTypeIsIncomplete && !cleanedIncompleteUnknowns) {
|
|
44996
45103
|
flowIncompleteGeneration++;
|
|
44997
45104
|
reportIncomplete = false;
|
|
44998
45105
|
}
|
|
@@ -50267,7 +50374,7 @@ var require_tokenizer = __commonJS({
|
|
|
50267
50374
|
"node_modules/@zzzen/pyright-internal/dist/parser/tokenizer.js"(exports) {
|
|
50268
50375
|
"use strict";
|
|
50269
50376
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50270
|
-
exports.Tokenizer = void 0;
|
|
50377
|
+
exports.Tokenizer = exports.maxStringTokenLength = void 0;
|
|
50271
50378
|
var parseTreeUtils_1 = require_parseTreeUtils();
|
|
50272
50379
|
var sourceFile_1 = require_sourceFile();
|
|
50273
50380
|
var textRangeCollection_1 = require_textRangeCollection();
|
|
@@ -50643,8 +50750,8 @@ var require_tokenizer = __commonJS({
|
|
|
50643
50750
|
]: 2
|
|
50644
50751
|
};
|
|
50645
50752
|
var _byteOrderMarker = 65279;
|
|
50646
|
-
var _maxStringTokenLength = 32 * 1024;
|
|
50647
50753
|
var defaultTabSize = 8;
|
|
50754
|
+
exports.maxStringTokenLength = 32 * 1024;
|
|
50648
50755
|
var Tokenizer = class {
|
|
50649
50756
|
constructor(_keywords = PythonKeywords) {
|
|
50650
50757
|
this._keywords = _keywords;
|
|
@@ -51659,7 +51766,7 @@ var require_tokenizer = __commonJS({
|
|
|
51659
51766
|
}
|
|
51660
51767
|
}
|
|
51661
51768
|
} else if (this._cs.currentChar === 10 || this._cs.currentChar === 13) {
|
|
51662
|
-
if (!isTriplicate) {
|
|
51769
|
+
if (!isTriplicate && !isFString) {
|
|
51663
51770
|
flags |= 65536;
|
|
51664
51771
|
return { escapedValue: String.fromCharCode.apply(void 0, escapedValueParts), flags };
|
|
51665
51772
|
}
|
|
@@ -51705,8 +51812,8 @@ var require_tokenizer = __commonJS({
|
|
|
51705
51812
|
this._cs.moveNext();
|
|
51706
51813
|
}
|
|
51707
51814
|
}
|
|
51708
|
-
if (escapedValueParts.length >
|
|
51709
|
-
escapedValueParts = escapedValueParts.slice(0,
|
|
51815
|
+
if (escapedValueParts.length > exports.maxStringTokenLength) {
|
|
51816
|
+
escapedValueParts = escapedValueParts.slice(0, exports.maxStringTokenLength);
|
|
51710
51817
|
flags |= 131072;
|
|
51711
51818
|
}
|
|
51712
51819
|
return { escapedValue: String.fromCharCode.apply(void 0, escapedValueParts), flags };
|
|
@@ -53378,6 +53485,7 @@ var require_properties = __commonJS({
|
|
|
53378
53485
|
});
|
|
53379
53486
|
getFunction1.details.declaredReturnType = types_1.FunctionType.isClassMethod(fget) ? types_1.FunctionType.getSpecializedReturnType(fget) : propertyObject;
|
|
53380
53487
|
getFunction1.details.declaration = fget.details.declaration;
|
|
53488
|
+
getFunction1.details.deprecatedMessage = fget.details.deprecatedMessage;
|
|
53381
53489
|
getFunction1.details.typeVarScopeId = (0, typeUtils_1.getTypeVarScopeId)(fget);
|
|
53382
53490
|
const getFunction2 = types_1.FunctionType.createSynthesizedInstance(
|
|
53383
53491
|
"__get__",
|
|
@@ -53407,6 +53515,7 @@ var require_properties = __commonJS({
|
|
|
53407
53515
|
});
|
|
53408
53516
|
getFunction2.details.declaredReturnType = types_1.FunctionType.getSpecializedReturnType(fget);
|
|
53409
53517
|
getFunction2.details.declaration = fget.details.declaration;
|
|
53518
|
+
getFunction2.details.deprecatedMessage = fget.details.deprecatedMessage;
|
|
53410
53519
|
getFunction2.details.typeVarScopeId = (0, typeUtils_1.getTypeVarScopeId)(fget);
|
|
53411
53520
|
const getFunctionOverload = types_1.OverloadedFunctionType.create([getFunction2, getFunction1]);
|
|
53412
53521
|
const getSymbol = symbol_1.Symbol.createWithType(4, getFunctionOverload);
|
|
@@ -53433,6 +53542,7 @@ var require_properties = __commonJS({
|
|
|
53433
53542
|
});
|
|
53434
53543
|
setFunction.details.declaredReturnType = types_1.NoneType.createInstance();
|
|
53435
53544
|
setFunction.details.typeVarScopeId = (0, typeUtils_1.getTypeVarScopeId)(fset);
|
|
53545
|
+
setFunction.details.deprecatedMessage = fset.details.deprecatedMessage;
|
|
53436
53546
|
let setParamType = types_1.UnknownType.create();
|
|
53437
53547
|
if (fset.details.parameters.length >= 2 && fset.details.parameters[1].category === 0 && fset.details.parameters[1].name) {
|
|
53438
53548
|
setParamType = fset.details.parameters[1].type;
|
|
@@ -53456,6 +53566,7 @@ var require_properties = __commonJS({
|
|
|
53456
53566
|
hasDeclaredType: true
|
|
53457
53567
|
});
|
|
53458
53568
|
delFunction.details.typeVarScopeId = (0, typeUtils_1.getTypeVarScopeId)(fdel);
|
|
53569
|
+
delFunction.details.deprecatedMessage = fdel.details.deprecatedMessage;
|
|
53459
53570
|
let objType = fdel.details.parameters.length > 0 ? fdel.details.parameters[0].type : types_1.AnyType.create();
|
|
53460
53571
|
if ((0, types_1.isTypeVar)(objType) && objType.details.isSynthesizedSelf) {
|
|
53461
53572
|
objType = evaluator.makeTopLevelTypeVarsConcrete(objType);
|
|
@@ -53602,7 +53713,7 @@ var require_decorators = __commonJS({
|
|
|
53602
53713
|
"node_modules/@zzzen/pyright-internal/dist/analyzer/decorators.js"(exports) {
|
|
53603
53714
|
"use strict";
|
|
53604
53715
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53605
|
-
exports.addOverloadsToFunctionType = exports.applyClassDecorator = exports.applyFunctionDecorator = exports.
|
|
53716
|
+
exports.addOverloadsToFunctionType = exports.applyClassDecorator = exports.applyFunctionDecorator = exports.getFunctionInfoFromDecorators = void 0;
|
|
53606
53717
|
var collectionUtils_1 = require_collectionUtils();
|
|
53607
53718
|
var diagnosticRules_1 = require_diagnosticRules();
|
|
53608
53719
|
var localize_1 = require_localize();
|
|
@@ -53611,9 +53722,10 @@ var require_decorators = __commonJS({
|
|
|
53611
53722
|
var properties_1 = require_properties();
|
|
53612
53723
|
var typeUtils_1 = require_typeUtils();
|
|
53613
53724
|
var types_1 = require_types();
|
|
53614
|
-
function
|
|
53725
|
+
function getFunctionInfoFromDecorators(evaluator, node, isInClass) {
|
|
53615
53726
|
const fileInfo = (0, analyzerNodeInfo_1.getFileInfo)(node);
|
|
53616
53727
|
let flags = 0;
|
|
53728
|
+
let deprecationMessage;
|
|
53617
53729
|
if (isInClass) {
|
|
53618
53730
|
if (node.name.value === "__new__") {
|
|
53619
53731
|
flags |= 1;
|
|
@@ -53627,6 +53739,24 @@ var require_decorators = __commonJS({
|
|
|
53627
53739
|
let evaluatorFlags = fileInfo.isStubFile ? 4 : 0;
|
|
53628
53740
|
if (decoratorNode.expression.nodeType !== 9) {
|
|
53629
53741
|
evaluatorFlags |= 16777218;
|
|
53742
|
+
} else {
|
|
53743
|
+
if (decoratorNode.expression.nodeType === 9) {
|
|
53744
|
+
const decoratorCallType = evaluator.getTypeOfExpression(
|
|
53745
|
+
decoratorNode.expression.leftExpression,
|
|
53746
|
+
evaluatorFlags | 16777218
|
|
53747
|
+
/* CallBaseDefaults */
|
|
53748
|
+
).type;
|
|
53749
|
+
if ((0, types_1.isFunction)(decoratorCallType)) {
|
|
53750
|
+
if (decoratorCallType.details.builtInName === "deprecated") {
|
|
53751
|
+
deprecationMessage = getCustomDeprecationMessage(decoratorNode);
|
|
53752
|
+
}
|
|
53753
|
+
}
|
|
53754
|
+
if ((0, types_1.isOverloadedFunction)(decoratorCallType)) {
|
|
53755
|
+
if (decoratorCallType.overloads.length > 0 && decoratorCallType.overloads[0].details.builtInName === "deprecated") {
|
|
53756
|
+
deprecationMessage = getCustomDeprecationMessage(decoratorNode);
|
|
53757
|
+
}
|
|
53758
|
+
}
|
|
53759
|
+
}
|
|
53630
53760
|
}
|
|
53631
53761
|
const decoratorTypeResult = evaluator.getTypeOfExpression(decoratorNode.expression, evaluatorFlags);
|
|
53632
53762
|
const decoratorType = decoratorTypeResult.type;
|
|
@@ -53643,6 +53773,12 @@ var require_decorators = __commonJS({
|
|
|
53643
53773
|
flags |= 128;
|
|
53644
53774
|
} else if (decoratorType.details.builtInName === "overload") {
|
|
53645
53775
|
flags |= 256;
|
|
53776
|
+
} else if (decoratorType.details.builtInName === "deprecated") {
|
|
53777
|
+
deprecationMessage = getCustomDeprecationMessage(decoratorNode);
|
|
53778
|
+
}
|
|
53779
|
+
} else if ((0, types_1.isOverloadedFunction)(decoratorType)) {
|
|
53780
|
+
if (decoratorType.overloads.length > 0 && decoratorType.overloads[0].details.builtInName === "deprecated") {
|
|
53781
|
+
deprecationMessage = getCustomDeprecationMessage(decoratorNode);
|
|
53646
53782
|
}
|
|
53647
53783
|
} else if ((0, types_1.isInstantiableClass)(decoratorType)) {
|
|
53648
53784
|
if (types_1.ClassType.isBuiltIn(decoratorType, "staticmethod")) {
|
|
@@ -53656,9 +53792,9 @@ var require_decorators = __commonJS({
|
|
|
53656
53792
|
}
|
|
53657
53793
|
}
|
|
53658
53794
|
}
|
|
53659
|
-
return flags;
|
|
53795
|
+
return { flags, deprecationMessage };
|
|
53660
53796
|
}
|
|
53661
|
-
exports.
|
|
53797
|
+
exports.getFunctionInfoFromDecorators = getFunctionInfoFromDecorators;
|
|
53662
53798
|
function applyFunctionDecorator(evaluator, inputFunctionType, undecoratedType, decoratorNode, functionNode) {
|
|
53663
53799
|
const fileInfo = (0, analyzerNodeInfo_1.getFileInfo)(decoratorNode);
|
|
53664
53800
|
let evaluatorFlags = fileInfo.isStubFile ? 4 : 0;
|
|
@@ -53686,28 +53822,18 @@ var require_decorators = __commonJS({
|
|
|
53686
53822
|
return inputFunctionType;
|
|
53687
53823
|
}
|
|
53688
53824
|
if (decoratorCallType.details.builtInName === "deprecated") {
|
|
53689
|
-
const deprecationMessage = getCustomDeprecationMessage(decoratorNode);
|
|
53690
|
-
undecoratedType.details.deprecatedMessage = deprecationMessage;
|
|
53691
|
-
if ((0, types_1.isFunction)(inputFunctionType)) {
|
|
53692
|
-
inputFunctionType.details.deprecatedMessage = deprecationMessage;
|
|
53693
|
-
}
|
|
53694
53825
|
return inputFunctionType;
|
|
53695
53826
|
}
|
|
53696
53827
|
}
|
|
53697
53828
|
if ((0, types_1.isOverloadedFunction)(decoratorCallType)) {
|
|
53698
53829
|
if (decoratorCallType.overloads.length > 0 && decoratorCallType.overloads[0].details.builtInName === "deprecated") {
|
|
53699
|
-
undecoratedType.details.deprecatedMessage = getCustomDeprecationMessage(decoratorNode);
|
|
53700
53830
|
return inputFunctionType;
|
|
53701
53831
|
}
|
|
53702
53832
|
}
|
|
53703
53833
|
}
|
|
53704
53834
|
let returnType = getTypeOfDecorator(evaluator, decoratorNode, inputFunctionType);
|
|
53705
53835
|
if ((0, types_1.isFunction)(decoratorType)) {
|
|
53706
|
-
if (decoratorType.details.builtInName === "abstractmethod") {
|
|
53707
|
-
return inputFunctionType;
|
|
53708
|
-
}
|
|
53709
|
-
if (decoratorType.details.builtInName === "deprecated") {
|
|
53710
|
-
undecoratedType.details.deprecatedMessage = getCustomDeprecationMessage(decoratorNode);
|
|
53836
|
+
if (decoratorType.details.builtInName === "abstractmethod" || decoratorType.details.builtInName === "deprecated") {
|
|
53711
53837
|
return inputFunctionType;
|
|
53712
53838
|
}
|
|
53713
53839
|
if (decoratorType.details.builtInName === "type_check_only") {
|
|
@@ -53741,7 +53867,6 @@ var require_decorators = __commonJS({
|
|
|
53741
53867
|
}
|
|
53742
53868
|
} else if ((0, types_1.isOverloadedFunction)(decoratorType)) {
|
|
53743
53869
|
if (decoratorType.overloads.length > 0 && decoratorType.overloads[0].details.builtInName === "deprecated") {
|
|
53744
|
-
undecoratedType.details.deprecatedMessage = getCustomDeprecationMessage(decoratorNode);
|
|
53745
53870
|
return inputFunctionType;
|
|
53746
53871
|
}
|
|
53747
53872
|
} else if ((0, types_1.isInstantiableClass)(decoratorType)) {
|
|
@@ -53826,10 +53951,6 @@ var require_decorators = __commonJS({
|
|
|
53826
53951
|
);
|
|
53827
53952
|
return inputClassType;
|
|
53828
53953
|
}
|
|
53829
|
-
if (decoratorType.overloads.length > 0 && decoratorType.overloads[0].details.builtInName === "deprecated") {
|
|
53830
|
-
originalClassType.details.deprecatedMessage = getCustomDeprecationMessage(decoratorNode);
|
|
53831
|
-
return inputClassType;
|
|
53832
|
-
}
|
|
53833
53954
|
} else if ((0, types_1.isFunction)(decoratorType)) {
|
|
53834
53955
|
if (decoratorType.details.builtInName === "final") {
|
|
53835
53956
|
originalClassType.details.flags |= 4096;
|
|
@@ -53839,10 +53960,6 @@ var require_decorators = __commonJS({
|
|
|
53839
53960
|
originalClassType.details.flags |= 134217728;
|
|
53840
53961
|
return inputClassType;
|
|
53841
53962
|
}
|
|
53842
|
-
if (decoratorType.details.builtInName === "deprecated") {
|
|
53843
|
-
originalClassType.details.deprecatedMessage = getCustomDeprecationMessage(decoratorNode);
|
|
53844
|
-
return inputClassType;
|
|
53845
|
-
}
|
|
53846
53963
|
if (decoratorType.details.builtInName === "runtime_checkable") {
|
|
53847
53964
|
originalClassType.details.flags |= 32768;
|
|
53848
53965
|
return inputClassType;
|
|
@@ -55461,11 +55578,13 @@ var require_protocols = __commonJS({
|
|
|
55461
55578
|
} else {
|
|
55462
55579
|
const primaryDecl = symbol.getDeclarations()[0];
|
|
55463
55580
|
const isInvariant = (primaryDecl === null || primaryDecl === void 0 ? void 0 : primaryDecl.type) === 1 && !primaryDecl.isFinal;
|
|
55581
|
+
const protocolTypeVarContextClone = protocolTypeVarContext.clone();
|
|
55582
|
+
protocolTypeVarContextClone.addSolveForScope((0, typeUtils_1.getTypeVarScopeId)(destMemberType));
|
|
55464
55583
|
if (!evaluator.assignType(
|
|
55465
55584
|
destMemberType,
|
|
55466
55585
|
srcMemberType,
|
|
55467
55586
|
subDiag === null || subDiag === void 0 ? void 0 : subDiag.createAddendum(),
|
|
55468
|
-
|
|
55587
|
+
protocolTypeVarContextClone,
|
|
55469
55588
|
/* srcTypeVarContext */
|
|
55470
55589
|
void 0,
|
|
55471
55590
|
isInvariant ? assignTypeFlags | 1 : assignTypeFlags,
|
|
@@ -55478,6 +55597,8 @@ var require_protocols = __commonJS({
|
|
|
55478
55597
|
subDiag.addMessage(localize_1.Localizer.DiagnosticAddendum.memberTypeMismatch().format({ name }));
|
|
55479
55598
|
}
|
|
55480
55599
|
typesAreConsistent = false;
|
|
55600
|
+
} else {
|
|
55601
|
+
protocolTypeVarContext.copyFromClone(protocolTypeVarContextClone);
|
|
55481
55602
|
}
|
|
55482
55603
|
}
|
|
55483
55604
|
const isDestFinal = symbol.getTypedDeclarations().some((decl) => decl.type === 1 && !!decl.isFinal);
|
|
@@ -56807,6 +56928,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
56807
56928
|
let noneType;
|
|
56808
56929
|
let objectType;
|
|
56809
56930
|
let typeClassType;
|
|
56931
|
+
let awaitableProtocolType;
|
|
56810
56932
|
let functionObj;
|
|
56811
56933
|
let tupleClassType;
|
|
56812
56934
|
let boolClassType;
|
|
@@ -57056,6 +57178,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
57056
57178
|
dictClassType = getBuiltInType(node, "dict");
|
|
57057
57179
|
typedDictClassType = getTypingType(node, "TypedDict");
|
|
57058
57180
|
typedDictPrivateClassType = getTypingType(node, "_TypedDict");
|
|
57181
|
+
awaitableProtocolType = getTypingType(node, "Awaitable");
|
|
57059
57182
|
mappingType = getTypeshedType(node, "SupportsKeysAndGetItem");
|
|
57060
57183
|
if (!mappingType) {
|
|
57061
57184
|
mappingType = getTypingType(node, "Mapping");
|
|
@@ -57820,7 +57943,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
57820
57943
|
usage,
|
|
57821
57944
|
/* diag */
|
|
57822
57945
|
void 0,
|
|
57823
|
-
memberAccessFlags | 2,
|
|
57946
|
+
memberAccessFlags | 2 | 128,
|
|
57824
57947
|
types_1.ClassType.cloneAsInstantiable(objectType2)
|
|
57825
57948
|
);
|
|
57826
57949
|
}
|
|
@@ -57830,7 +57953,8 @@ var require_typeEvaluator = __commonJS({
|
|
|
57830
57953
|
type: memberInfo.type,
|
|
57831
57954
|
classType: memberInfo.classType,
|
|
57832
57955
|
isIncomplete: !!memberInfo.isTypeIncomplete,
|
|
57833
|
-
isAsymmetricAccessor: memberInfo.isAsymmetricAccessor
|
|
57956
|
+
isAsymmetricAccessor: memberInfo.isAsymmetricAccessor,
|
|
57957
|
+
memberAccessDeprecationInfo: memberInfo.memberAccessDeprecationInfo
|
|
57834
57958
|
};
|
|
57835
57959
|
}
|
|
57836
57960
|
return void 0;
|
|
@@ -57895,7 +58019,8 @@ var require_typeEvaluator = __commonJS({
|
|
|
57895
58019
|
return {
|
|
57896
58020
|
type: memberInfo.type,
|
|
57897
58021
|
isIncomplete: !!memberInfo.isTypeIncomplete,
|
|
57898
|
-
isAsymmetricAccessor: memberInfo.isAsymmetricAccessor
|
|
58022
|
+
isAsymmetricAccessor: memberInfo.isAsymmetricAccessor,
|
|
58023
|
+
memberAccessDeprecationInfo: memberInfo.memberAccessDeprecationInfo
|
|
57899
58024
|
};
|
|
57900
58025
|
}
|
|
57901
58026
|
const subDiag = isMemberPresentOnClass ? classDiag : metaclassDiag;
|
|
@@ -58222,31 +58347,28 @@ var require_typeEvaluator = __commonJS({
|
|
|
58222
58347
|
return void 0;
|
|
58223
58348
|
}
|
|
58224
58349
|
function getTypeOfAwaitable(type, errorNode) {
|
|
58350
|
+
if (!awaitableProtocolType || !(0, types_1.isInstantiableClass)(awaitableProtocolType) || awaitableProtocolType.details.typeParameters.length !== 1) {
|
|
58351
|
+
return types_1.UnknownType.create();
|
|
58352
|
+
}
|
|
58353
|
+
const awaitableProtocolObj = types_1.ClassType.cloneAsInstance(awaitableProtocolType);
|
|
58225
58354
|
return (0, typeUtils_1.mapSubtypes)(type, (subtype) => {
|
|
58226
58355
|
subtype = makeTopLevelTypeVarsConcrete(subtype);
|
|
58227
58356
|
if ((0, types_1.isAnyOrUnknown)(subtype)) {
|
|
58228
58357
|
return subtype;
|
|
58229
58358
|
}
|
|
58359
|
+
const diag = errorNode ? new diagnostic_1.DiagnosticAddendum() : void 0;
|
|
58230
58360
|
if ((0, types_1.isClassInstance)(subtype)) {
|
|
58231
|
-
const
|
|
58232
|
-
if (
|
|
58233
|
-
|
|
58234
|
-
|
|
58235
|
-
|
|
58236
|
-
if ((0, types_1.isClassInstance)(awaitReturnType)) {
|
|
58237
|
-
const iterReturnType = getSpecializedReturnType(awaitReturnType, "__iter__", [], errorNode);
|
|
58238
|
-
if (iterReturnType) {
|
|
58239
|
-
const generatorReturnType = getReturnTypeFromGenerator(awaitReturnType);
|
|
58240
|
-
if (generatorReturnType) {
|
|
58241
|
-
return generatorReturnType;
|
|
58242
|
-
}
|
|
58243
|
-
}
|
|
58361
|
+
const typeVarContext = new typeVarContext_1.TypeVarContext((0, typeUtils_1.getTypeVarScopeId)(awaitableProtocolObj));
|
|
58362
|
+
if (assignType(awaitableProtocolObj, subtype, diag, typeVarContext)) {
|
|
58363
|
+
const specializedType = (0, typeUtils_1.applySolvedTypeVars)(awaitableProtocolObj, typeVarContext);
|
|
58364
|
+
if ((0, types_1.isClass)(specializedType) && specializedType.typeArguments && specializedType.typeArguments.length > 0) {
|
|
58365
|
+
return specializedType.typeArguments[0];
|
|
58244
58366
|
}
|
|
58245
58367
|
}
|
|
58246
58368
|
}
|
|
58247
58369
|
if (errorNode) {
|
|
58248
58370
|
const fileInfo = AnalyzerNodeInfo.getFileInfo(errorNode);
|
|
58249
|
-
addDiagnostic(fileInfo.diagnosticRuleSet.reportGeneralTypeIssues, diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.Localizer.Diagnostic.typeNotAwaitable().format({ type: printType(subtype) }), errorNode);
|
|
58371
|
+
addDiagnostic(fileInfo.diagnosticRuleSet.reportGeneralTypeIssues, diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.Localizer.Diagnostic.typeNotAwaitable().format({ type: printType(subtype) }) + (diag === null || diag === void 0 ? void 0 : diag.getString()), errorNode);
|
|
58250
58372
|
}
|
|
58251
58373
|
return types_1.UnknownType.create();
|
|
58252
58374
|
});
|
|
@@ -58756,15 +58878,20 @@ var require_typeEvaluator = __commonJS({
|
|
|
58756
58878
|
if (setTypeResult.isAsymmetricAccessor) {
|
|
58757
58879
|
setAsymmetricDescriptorAssignment(target);
|
|
58758
58880
|
}
|
|
58881
|
+
const resultToCache = {
|
|
58882
|
+
type,
|
|
58883
|
+
isIncomplete: isTypeIncomplete,
|
|
58884
|
+
memberAccessDeprecationInfo: setTypeResult.memberAccessDeprecationInfo
|
|
58885
|
+
};
|
|
58759
58886
|
writeTypeCache(
|
|
58760
58887
|
target.memberName,
|
|
58761
|
-
|
|
58888
|
+
resultToCache,
|
|
58762
58889
|
0
|
|
58763
58890
|
/* None */
|
|
58764
58891
|
);
|
|
58765
58892
|
writeTypeCache(
|
|
58766
58893
|
target,
|
|
58767
|
-
|
|
58894
|
+
resultToCache,
|
|
58768
58895
|
0
|
|
58769
58896
|
/* None */
|
|
58770
58897
|
);
|
|
@@ -59372,22 +59499,26 @@ var require_typeEvaluator = __commonJS({
|
|
|
59372
59499
|
16777218
|
|
59373
59500
|
/* MemberAccessBaseDefaults */
|
|
59374
59501
|
);
|
|
59375
|
-
const
|
|
59502
|
+
const delAccessResult = getTypeOfMemberAccessWithBaseType(
|
|
59376
59503
|
node,
|
|
59377
59504
|
baseTypeResult,
|
|
59378
59505
|
{ method: "del" },
|
|
59379
59506
|
0
|
|
59380
59507
|
/* None */
|
|
59381
59508
|
);
|
|
59509
|
+
const resultToCache = {
|
|
59510
|
+
type: delAccessResult.type,
|
|
59511
|
+
memberAccessDeprecationInfo: delAccessResult.memberAccessDeprecationInfo
|
|
59512
|
+
};
|
|
59382
59513
|
writeTypeCache(
|
|
59383
59514
|
node.memberName,
|
|
59384
|
-
|
|
59515
|
+
resultToCache,
|
|
59385
59516
|
0
|
|
59386
59517
|
/* None */
|
|
59387
59518
|
);
|
|
59388
59519
|
writeTypeCache(
|
|
59389
59520
|
node,
|
|
59390
|
-
|
|
59521
|
+
resultToCache,
|
|
59391
59522
|
0
|
|
59392
59523
|
/* None */
|
|
59393
59524
|
);
|
|
@@ -59440,20 +59571,6 @@ var require_typeEvaluator = __commonJS({
|
|
|
59440
59571
|
fileInfo.accessedSymbolSet.add(symbol.id);
|
|
59441
59572
|
}
|
|
59442
59573
|
}
|
|
59443
|
-
function getReturnTypeFromGenerator(type) {
|
|
59444
|
-
if ((0, types_1.isAnyOrUnknown)(type)) {
|
|
59445
|
-
return type;
|
|
59446
|
-
}
|
|
59447
|
-
if ((0, types_1.isClassInstance)(type)) {
|
|
59448
|
-
if (types_1.ClassType.isBuiltIn(type, "Generator")) {
|
|
59449
|
-
const typeArgs = type.typeArguments;
|
|
59450
|
-
if (typeArgs && typeArgs.length >= 3) {
|
|
59451
|
-
return typeArgs[2];
|
|
59452
|
-
}
|
|
59453
|
-
}
|
|
59454
|
-
}
|
|
59455
|
-
return void 0;
|
|
59456
|
-
}
|
|
59457
59574
|
function getSpecializedReturnType(objType, memberName, argList, errorNode, bindToClass) {
|
|
59458
59575
|
const classMember = (0, typeUtils_1.lookUpObjectMember)(
|
|
59459
59576
|
objType,
|
|
@@ -60011,6 +60128,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
60011
60128
|
let isAsymmetricAccessor;
|
|
60012
60129
|
const isRequired = false;
|
|
60013
60130
|
const isNotRequired = false;
|
|
60131
|
+
let memberAccessDeprecationInfo;
|
|
60014
60132
|
if (baseTypeResult.isIncomplete && (0, types_1.isUnbound)(baseType)) {
|
|
60015
60133
|
return { type: types_1.UnknownType.create(
|
|
60016
60134
|
/* isIncomplete */
|
|
@@ -60105,6 +60223,9 @@ var require_typeEvaluator = __commonJS({
|
|
|
60105
60223
|
if (typeResult === null || typeResult === void 0 ? void 0 : typeResult.isAsymmetricAccessor) {
|
|
60106
60224
|
isAsymmetricAccessor = true;
|
|
60107
60225
|
}
|
|
60226
|
+
if (typeResult === null || typeResult === void 0 ? void 0 : typeResult.memberAccessDeprecationInfo) {
|
|
60227
|
+
memberAccessDeprecationInfo = typeResult.memberAccessDeprecationInfo;
|
|
60228
|
+
}
|
|
60108
60229
|
} else {
|
|
60109
60230
|
const enumMemberResult = (0, enums_1.getTypeOfEnumMember)(evaluatorInterface, node, baseType, memberName, isIncomplete);
|
|
60110
60231
|
if (enumMemberResult) {
|
|
@@ -60129,6 +60250,9 @@ var require_typeEvaluator = __commonJS({
|
|
|
60129
60250
|
if (typeResult === null || typeResult === void 0 ? void 0 : typeResult.isAsymmetricAccessor) {
|
|
60130
60251
|
isAsymmetricAccessor = true;
|
|
60131
60252
|
}
|
|
60253
|
+
if (typeResult === null || typeResult === void 0 ? void 0 : typeResult.memberAccessDeprecationInfo) {
|
|
60254
|
+
memberAccessDeprecationInfo = typeResult.memberAccessDeprecationInfo;
|
|
60255
|
+
}
|
|
60132
60256
|
}
|
|
60133
60257
|
break;
|
|
60134
60258
|
}
|
|
@@ -60228,6 +60352,9 @@ var require_typeEvaluator = __commonJS({
|
|
|
60228
60352
|
if (typeResult.isIncomplete) {
|
|
60229
60353
|
isIncomplete = true;
|
|
60230
60354
|
}
|
|
60355
|
+
if (typeResult === null || typeResult === void 0 ? void 0 : typeResult.memberAccessDeprecationInfo) {
|
|
60356
|
+
memberAccessDeprecationInfo = typeResult.memberAccessDeprecationInfo;
|
|
60357
|
+
}
|
|
60231
60358
|
return typeResult.type;
|
|
60232
60359
|
}
|
|
60233
60360
|
});
|
|
@@ -60320,7 +60447,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
60320
60447
|
);
|
|
60321
60448
|
}
|
|
60322
60449
|
}
|
|
60323
|
-
return { type, isIncomplete, isAsymmetricAccessor, isRequired, isNotRequired };
|
|
60450
|
+
return { type, isIncomplete, isAsymmetricAccessor, isRequired, isNotRequired, memberAccessDeprecationInfo };
|
|
60324
60451
|
}
|
|
60325
60452
|
function getTypeOfClassMemberName(errorNode, classType, isAccessedThroughObject, memberName, usage, diag, flags, bindToType) {
|
|
60326
60453
|
var _a, _b;
|
|
@@ -60460,7 +60587,8 @@ var require_typeEvaluator = __commonJS({
|
|
|
60460
60587
|
isClassMember: !memberInfo.isInstanceMember,
|
|
60461
60588
|
isClassVar: memberInfo.isClassVar,
|
|
60462
60589
|
classType: memberInfo.classType,
|
|
60463
|
-
isAsymmetricAccessor: descriptorResult.isAsymmetricAccessor
|
|
60590
|
+
isAsymmetricAccessor: descriptorResult.isAsymmetricAccessor,
|
|
60591
|
+
memberAccessDeprecationInfo: descriptorResult === null || descriptorResult === void 0 ? void 0 : descriptorResult.memberAccessDeprecationInfo
|
|
60464
60592
|
};
|
|
60465
60593
|
}
|
|
60466
60594
|
if ((flags & (1 | 128)) === 0) {
|
|
@@ -60483,6 +60611,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
60483
60611
|
const treatConstructorAsClassMember = (flags & 32) !== 0;
|
|
60484
60612
|
let isTypeValid = true;
|
|
60485
60613
|
let isAsymmetricAccessor = false;
|
|
60614
|
+
let memberAccessDeprecationInfo;
|
|
60486
60615
|
type = (0, typeUtils_1.mapSubtypes)(type, (subtype) => {
|
|
60487
60616
|
var _a, _b, _c;
|
|
60488
60617
|
const concreteSubtype = makeTopLevelTypeVarsConcrete(subtype);
|
|
@@ -60614,6 +60743,16 @@ var require_typeEvaluator = __commonJS({
|
|
|
60614
60743
|
/* skipUnknownArgCheck */
|
|
60615
60744
|
true
|
|
60616
60745
|
);
|
|
60746
|
+
if (callResult.overloadsUsedForCall && callResult.overloadsUsedForCall.length >= 1) {
|
|
60747
|
+
const overloadUsed = callResult.overloadsUsedForCall[0];
|
|
60748
|
+
if (overloadUsed.details.deprecatedMessage) {
|
|
60749
|
+
memberAccessDeprecationInfo = {
|
|
60750
|
+
deprecationMessage: overloadUsed.details.deprecatedMessage,
|
|
60751
|
+
accessType: lookupClass && types_1.ClassType.isPropertyClass(lookupClass) ? "property" : "descriptor",
|
|
60752
|
+
accessMethod: usage.method
|
|
60753
|
+
};
|
|
60754
|
+
}
|
|
60755
|
+
}
|
|
60617
60756
|
if (callResult.argumentErrors) {
|
|
60618
60757
|
if (usage.method === "set") {
|
|
60619
60758
|
if (usage.setType && (0, types_1.isFunction)(boundMethodType) && boundMethodType.details.parameters.length >= 2 && !usage.setType.isIncomplete) {
|
|
@@ -60735,7 +60874,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
60735
60874
|
if (!isTypeValid) {
|
|
60736
60875
|
return void 0;
|
|
60737
60876
|
}
|
|
60738
|
-
return { type, isAsymmetricAccessor };
|
|
60877
|
+
return { type, isAsymmetricAccessor, memberAccessDeprecationInfo };
|
|
60739
60878
|
}
|
|
60740
60879
|
function isAsymmetricDescriptorClass(classType) {
|
|
60741
60880
|
var _a;
|
|
@@ -62169,7 +62308,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
62169
62308
|
if (node.arguments.length > 2) {
|
|
62170
62309
|
addError(localize_1.Localizer.Diagnostic.superCallArgCount(), node.arguments[2]);
|
|
62171
62310
|
}
|
|
62172
|
-
const enclosingFunction = ParseTreeUtils.
|
|
62311
|
+
const enclosingFunction = ParseTreeUtils.getEnclosingFunctionEvaluationScope(node);
|
|
62173
62312
|
const enclosingClass = enclosingFunction ? ParseTreeUtils.getEnclosingClass(
|
|
62174
62313
|
enclosingFunction,
|
|
62175
62314
|
/* stopAtFunction */
|
|
@@ -62554,13 +62693,21 @@ var require_typeEvaluator = __commonJS({
|
|
|
62554
62693
|
}
|
|
62555
62694
|
return { argumentErrors: true, isTypeIncomplete, overloadsUsedForCall: [] };
|
|
62556
62695
|
}
|
|
62557
|
-
function evaluateUsingBestMatchingOverload(skipUnknownArgCheck2) {
|
|
62696
|
+
function evaluateUsingBestMatchingOverload(skipUnknownArgCheck2, emitNoOverloadFoundError) {
|
|
62558
62697
|
const bestMatch = filteredMatchResults.reduce((previous, current) => {
|
|
62559
62698
|
if (current.argumentMatchScore === previous.argumentMatchScore) {
|
|
62560
62699
|
return current.overloadIndex > previous.overloadIndex ? current : previous;
|
|
62561
62700
|
}
|
|
62562
62701
|
return current.argumentMatchScore < previous.argumentMatchScore ? current : previous;
|
|
62563
62702
|
});
|
|
62703
|
+
if (emitNoOverloadFoundError) {
|
|
62704
|
+
const functionName = bestMatch.overload.details.name || "<anonymous function>";
|
|
62705
|
+
const diagnostic = addDiagnostic(AnalyzerNodeInfo.getFileInfo(errorNode).diagnosticRuleSet.reportGeneralTypeIssues, diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.Localizer.Diagnostic.noOverload().format({ name: functionName }), errorNode);
|
|
62706
|
+
const overrideDecl = bestMatch.overload.details.declaration;
|
|
62707
|
+
if (diagnostic && overrideDecl) {
|
|
62708
|
+
diagnostic.addRelatedInfo(localize_1.Localizer.DiagnosticAddendum.overloadIndex().format({ index: bestMatch.overloadIndex + 1 }), overrideDecl.path, overrideDecl.range);
|
|
62709
|
+
}
|
|
62710
|
+
}
|
|
62564
62711
|
const effectiveTypeVarContext = typeVarContext !== null && typeVarContext !== void 0 ? typeVarContext : new typeVarContext_1.TypeVarContext();
|
|
62565
62712
|
effectiveTypeVarContext.addSolveForScope((0, typeUtils_1.getTypeVarScopeIds)(bestMatch.overload));
|
|
62566
62713
|
effectiveTypeVarContext.unlock();
|
|
@@ -62569,6 +62716,8 @@ var require_typeEvaluator = __commonJS({
|
|
|
62569
62716
|
if (filteredMatchResults.length === 1) {
|
|
62570
62717
|
return evaluateUsingBestMatchingOverload(
|
|
62571
62718
|
/* skipUnknownArgCheck */
|
|
62719
|
+
false,
|
|
62720
|
+
/* emitNoOverloadFoundError */
|
|
62572
62721
|
false
|
|
62573
62722
|
);
|
|
62574
62723
|
}
|
|
@@ -62605,6 +62754,8 @@ var require_typeEvaluator = __commonJS({
|
|
|
62605
62754
|
if (!isDiagnosticSuppressedForNode(errorNode) && !isTypeIncomplete) {
|
|
62606
62755
|
const result = evaluateUsingBestMatchingOverload(
|
|
62607
62756
|
/* skipUnknownArgCheck */
|
|
62757
|
+
true,
|
|
62758
|
+
/* emitNoOverloadFoundError */
|
|
62608
62759
|
true
|
|
62609
62760
|
);
|
|
62610
62761
|
result.returnType = types_1.UnknownType.create();
|
|
@@ -63907,7 +64058,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
63907
64058
|
});
|
|
63908
64059
|
let paramSpecTypeVarContext = [];
|
|
63909
64060
|
if (matchResults.paramSpecArgList && matchResults.paramSpecTarget) {
|
|
63910
|
-
const paramSpecArgResult = validateFunctionArgumentsForParamSpec(errorNode, matchResults.paramSpecArgList, matchResults.paramSpecTarget, typeVarContext,
|
|
64061
|
+
const paramSpecArgResult = validateFunctionArgumentsForParamSpec(errorNode, matchResults.paramSpecArgList, matchResults.paramSpecTarget, typeVarContext, signatureTracker);
|
|
63911
64062
|
if (paramSpecArgResult.argumentErrors) {
|
|
63912
64063
|
argumentErrors = true;
|
|
63913
64064
|
argumentMatchScore += 1;
|
|
@@ -64053,16 +64204,16 @@ var require_typeEvaluator = __commonJS({
|
|
|
64053
64204
|
}
|
|
64054
64205
|
return validateFunctionArgumentTypesWithContext(errorNode, matchResults, typeVarContext, skipUnknownArgCheck, (0, typeUtils_1.makeInferenceContext)(inferenceContext === null || inferenceContext === void 0 ? void 0 : inferenceContext.expectedType, inferenceContext === null || inferenceContext === void 0 ? void 0 : inferenceContext.isTypeIncomplete, signatureTracker));
|
|
64055
64206
|
}
|
|
64056
|
-
function validateFunctionArgumentsForParamSpec(errorNode, argList, paramSpec, destTypeVarContext,
|
|
64207
|
+
function validateFunctionArgumentsForParamSpec(errorNode, argList, paramSpec, destTypeVarContext, signatureTracker) {
|
|
64057
64208
|
const signatureContexts = destTypeVarContext.getSignatureContexts();
|
|
64058
64209
|
if (signatureContexts.length === 1) {
|
|
64059
|
-
return validateFunctionArgumentsForParamSpecSignature(errorNode, argList, paramSpec, signatureContexts[0],
|
|
64210
|
+
return validateFunctionArgumentsForParamSpecSignature(errorNode, argList, paramSpec, signatureContexts[0], signatureTracker);
|
|
64060
64211
|
}
|
|
64061
64212
|
const filteredSignatureContexts = [];
|
|
64062
64213
|
const typeVarContexts = [];
|
|
64063
64214
|
signatureContexts.forEach((context) => {
|
|
64064
64215
|
useSpeculativeMode(errorNode, () => {
|
|
64065
|
-
const paramSpecArgResult2 = validateFunctionArgumentsForParamSpecSignature(errorNode, argList, paramSpec, context,
|
|
64216
|
+
const paramSpecArgResult2 = validateFunctionArgumentsForParamSpecSignature(errorNode, argList, paramSpec, context, signatureTracker);
|
|
64066
64217
|
if (!paramSpecArgResult2.argumentErrors) {
|
|
64067
64218
|
filteredSignatureContexts.push(context);
|
|
64068
64219
|
}
|
|
@@ -64072,159 +64223,28 @@ var require_typeEvaluator = __commonJS({
|
|
|
64072
64223
|
if (filteredSignatureContexts.length > 0) {
|
|
64073
64224
|
destTypeVarContext.copySignatureContexts(filteredSignatureContexts);
|
|
64074
64225
|
}
|
|
64075
|
-
const paramSpecArgResult = validateFunctionArgumentsForParamSpecSignature(errorNode, argList, paramSpec, filteredSignatureContexts.length > 0 ? filteredSignatureContexts[0] : signatureContexts[0],
|
|
64226
|
+
const paramSpecArgResult = validateFunctionArgumentsForParamSpecSignature(errorNode, argList, paramSpec, filteredSignatureContexts.length > 0 ? filteredSignatureContexts[0] : signatureContexts[0], signatureTracker);
|
|
64076
64227
|
return { argumentErrors: paramSpecArgResult.argumentErrors, typeVarContexts };
|
|
64077
64228
|
}
|
|
64078
|
-
function validateFunctionArgumentsForParamSpecSignature(errorNode, argList, paramSpec, typeVarContext,
|
|
64229
|
+
function validateFunctionArgumentsForParamSpecSignature(errorNode, argList, paramSpec, typeVarContext, signatureTracker) {
|
|
64079
64230
|
var _a;
|
|
64080
64231
|
const paramSpecType = typeVarContext.getParamSpecType(paramSpec);
|
|
64081
64232
|
if (!paramSpecType) {
|
|
64082
64233
|
addDiagnostic(AnalyzerNodeInfo.getFileInfo(errorNode).diagnosticRuleSet.reportGeneralTypeIssues, diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.Localizer.Diagnostic.paramSpecNotBound().format({ type: printType(paramSpec) }), ((_a = argList[0]) === null || _a === void 0 ? void 0 : _a.valueExpression) || errorNode);
|
|
64083
64234
|
return { argumentErrors: true, typeVarContexts: [void 0] };
|
|
64084
64235
|
}
|
|
64085
|
-
const
|
|
64236
|
+
const matchResults = matchFunctionArgumentsToParameters(errorNode, argList, { type: paramSpecType }, 0);
|
|
64086
64237
|
const srcTypeVarContext = new typeVarContext_1.TypeVarContext((0, typeUtils_1.getTypeVarScopeIds)(paramSpecType));
|
|
64087
|
-
|
|
64088
|
-
|
|
64089
|
-
|
|
64090
|
-
|
|
64091
|
-
const passCount = 2;
|
|
64092
|
-
for (let i = 0; i < passCount; i++) {
|
|
64093
|
-
useSpeculativeMode(i < passCount - 1 ? errorNode : void 0, () => {
|
|
64094
|
-
paramMap = /* @__PURE__ */ new Map();
|
|
64095
|
-
const paramSpecParams = paramSpecType.details.parameters;
|
|
64096
|
-
paramSpecParams.forEach((param) => {
|
|
64097
|
-
if (param.name) {
|
|
64098
|
-
paramMap.set(param.name, param);
|
|
64099
|
-
}
|
|
64100
|
-
});
|
|
64101
|
-
let positionalIndex = 0;
|
|
64102
|
-
let positionalIndexLimit = paramSpecParams.findIndex(
|
|
64103
|
-
(paramInfo) => paramInfo.category !== 0
|
|
64104
|
-
/* Simple */
|
|
64105
|
-
);
|
|
64106
|
-
if (positionalIndexLimit < 0) {
|
|
64107
|
-
positionalIndexLimit = paramSpecParams.length;
|
|
64108
|
-
}
|
|
64109
|
-
const argsParam = paramSpecParams.find(
|
|
64110
|
-
(paramInfo) => paramInfo.category === 1
|
|
64111
|
-
/* ArgsList */
|
|
64112
|
-
);
|
|
64113
|
-
const kwargsParam = paramSpecParams.find(
|
|
64114
|
-
(paramInfo) => paramInfo.category === 2
|
|
64115
|
-
/* KwargsDict */
|
|
64116
|
-
);
|
|
64117
|
-
const signatureTracker = new typeUtils_1.UniqueSignatureTracker();
|
|
64118
|
-
const nestedArgList = [];
|
|
64119
|
-
argList.forEach((arg) => {
|
|
64120
|
-
var _a2;
|
|
64121
|
-
if (arg.argumentCategory === 0) {
|
|
64122
|
-
let paramType;
|
|
64123
|
-
if (arg.name) {
|
|
64124
|
-
const paramInfo = paramMap.get(arg.name.value);
|
|
64125
|
-
if (paramInfo) {
|
|
64126
|
-
paramType = paramInfo.type;
|
|
64127
|
-
paramMap.delete(arg.name.value);
|
|
64128
|
-
} else if (kwargsParam) {
|
|
64129
|
-
paramType = kwargsParam.type;
|
|
64130
|
-
} else {
|
|
64131
|
-
addDiagnostic(AnalyzerNodeInfo.getFileInfo(errorNode).diagnosticRuleSet.reportGeneralTypeIssues, diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.Localizer.Diagnostic.paramNameMissing().format({ name: arg.name.value }), arg.name || errorNode);
|
|
64132
|
-
reportedArgError = true;
|
|
64133
|
-
}
|
|
64134
|
-
} else {
|
|
64135
|
-
if (positionalIndex < positionalIndexLimit) {
|
|
64136
|
-
const paramInfo = paramSpecParams[positionalIndex];
|
|
64137
|
-
paramType = paramInfo.type;
|
|
64138
|
-
if (paramInfo.name) {
|
|
64139
|
-
paramMap.delete(paramInfo.name);
|
|
64140
|
-
}
|
|
64141
|
-
} else if (argsParam) {
|
|
64142
|
-
paramType = argsParam.type;
|
|
64143
|
-
} else if (paramSpecType.details.paramSpec) {
|
|
64144
|
-
nestedArgList.push(arg);
|
|
64145
|
-
} else {
|
|
64146
|
-
addDiagnostic(AnalyzerNodeInfo.getFileInfo(errorNode).diagnosticRuleSet.reportGeneralTypeIssues, diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, paramSpecParams.length === 1 ? localize_1.Localizer.Diagnostic.argPositionalExpectedOne() : localize_1.Localizer.Diagnostic.argPositionalExpectedCount().format({
|
|
64147
|
-
expected: paramSpecParams.length
|
|
64148
|
-
}), (_a2 = arg.valueExpression) !== null && _a2 !== void 0 ? _a2 : errorNode);
|
|
64149
|
-
reportedArgError = true;
|
|
64150
|
-
}
|
|
64151
|
-
positionalIndex++;
|
|
64152
|
-
}
|
|
64153
|
-
if (paramType) {
|
|
64154
|
-
const argResult = validateArgType(
|
|
64155
|
-
{
|
|
64156
|
-
paramCategory: 0,
|
|
64157
|
-
paramType: (0, typeUtils_1.transformExpectedType)(
|
|
64158
|
-
paramType,
|
|
64159
|
-
liveTypeVarScopes,
|
|
64160
|
-
/* usageOffset */
|
|
64161
|
-
void 0
|
|
64162
|
-
),
|
|
64163
|
-
requiresTypeVarMatching: false,
|
|
64164
|
-
argument: arg,
|
|
64165
|
-
errorNode: arg.valueExpression || errorNode
|
|
64166
|
-
},
|
|
64167
|
-
srcTypeVarContext,
|
|
64168
|
-
signatureTracker,
|
|
64169
|
-
/* functionType */
|
|
64170
|
-
void 0,
|
|
64171
|
-
{ conditionFilter }
|
|
64172
|
-
);
|
|
64173
|
-
if (!argResult.isCompatible) {
|
|
64174
|
-
reportedArgError = true;
|
|
64175
|
-
}
|
|
64176
|
-
}
|
|
64177
|
-
} else if (arg.argumentCategory === 1) {
|
|
64178
|
-
sawUnpackedListArgument = true;
|
|
64179
|
-
const argsParam2 = paramSpecParams.find((param) => param.category === 1 && param.name);
|
|
64180
|
-
if (argsParam2 && paramMap.has(argsParam2.name)) {
|
|
64181
|
-
paramMap.delete(argsParam2.name);
|
|
64182
|
-
}
|
|
64183
|
-
} else {
|
|
64184
|
-
sawUnpackedDictArgument = true;
|
|
64185
|
-
(0, debug_1.assert)(
|
|
64186
|
-
arg.argumentCategory === 2
|
|
64187
|
-
/* UnpackedDictionary */
|
|
64188
|
-
);
|
|
64189
|
-
const kwargsParam2 = paramSpecParams.find(
|
|
64190
|
-
(param) => param.category === 2
|
|
64191
|
-
/* KwargsDict */
|
|
64192
|
-
);
|
|
64193
|
-
if (kwargsParam2 && paramMap.has(kwargsParam2.name)) {
|
|
64194
|
-
paramMap.delete(kwargsParam2.name);
|
|
64195
|
-
}
|
|
64196
|
-
}
|
|
64197
|
-
});
|
|
64198
|
-
if (paramSpecType.details.paramSpec) {
|
|
64199
|
-
const boundTypeForParamSpec = srcTypeVarContext.getPrimarySignature().getParamSpecType(paramSpecType.details.paramSpec);
|
|
64200
|
-
if (boundTypeForParamSpec) {
|
|
64201
|
-
const paramSpecArgResult = validateFunctionArgumentsForParamSpec(errorNode, nestedArgList, paramSpecType.details.paramSpec, srcTypeVarContext, conditionFilter);
|
|
64202
|
-
if (paramSpecArgResult.argumentErrors) {
|
|
64203
|
-
reportedArgError = true;
|
|
64204
|
-
}
|
|
64205
|
-
}
|
|
64238
|
+
if (matchResults.argumentErrors) {
|
|
64239
|
+
argList.forEach((arg) => {
|
|
64240
|
+
if (arg.valueExpression && !isSpeculativeModeInUse(arg.valueExpression)) {
|
|
64241
|
+
getTypeOfExpression(arg.valueExpression);
|
|
64206
64242
|
}
|
|
64207
64243
|
});
|
|
64244
|
+
return { argumentErrors: true, typeVarContexts: [srcTypeVarContext] };
|
|
64208
64245
|
}
|
|
64209
|
-
|
|
64210
|
-
|
|
64211
|
-
unassignedParams = unassignedParams.filter((name) => {
|
|
64212
|
-
const paramInfo = paramMap.get(name);
|
|
64213
|
-
return paramInfo.category === 0 && !paramInfo.hasDefault;
|
|
64214
|
-
});
|
|
64215
|
-
if (unassignedParams.length > 0 && !paramSpecType.details.paramSpec && !sawUnpackedListArgument && !sawUnpackedDictArgument) {
|
|
64216
|
-
const missingParamNames = unassignedParams.map((p) => `"${p}"`).join(", ");
|
|
64217
|
-
addDiagnostic(AnalyzerNodeInfo.getFileInfo(errorNode).diagnosticRuleSet.reportGeneralTypeIssues, diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, unassignedParams.length === 1 ? localize_1.Localizer.Diagnostic.argMissingForParam().format({ name: missingParamNames }) : localize_1.Localizer.Diagnostic.argMissingForParams().format({ names: missingParamNames }), errorNode);
|
|
64218
|
-
reportedArgError = true;
|
|
64219
|
-
}
|
|
64220
|
-
}
|
|
64221
|
-
if (!reportedArgError) {
|
|
64222
|
-
(0, typeUtils_1.applySourceContextTypeVarsToSignature)(typeVarContext, srcTypeVarContext);
|
|
64223
|
-
}
|
|
64224
|
-
return {
|
|
64225
|
-
argumentErrors: reportedArgError,
|
|
64226
|
-
typeVarContexts: [reportedArgError ? srcTypeVarContext : void 0]
|
|
64227
|
-
};
|
|
64246
|
+
const result = validateFunctionArgumentTypes(errorNode, matchResults, srcTypeVarContext, signatureTracker);
|
|
64247
|
+
return { argumentErrors: !!result.argumentErrors, typeVarContexts: [srcTypeVarContext] };
|
|
64228
64248
|
}
|
|
64229
64249
|
function validateArgType(argParam, typeVarContext, signatureTracker, typeResult, options) {
|
|
64230
64250
|
var _a;
|
|
@@ -65173,20 +65193,27 @@ var require_typeEvaluator = __commonJS({
|
|
|
65173
65193
|
}
|
|
65174
65194
|
return void 0;
|
|
65175
65195
|
}
|
|
65176
|
-
|
|
65177
|
-
|
|
65178
|
-
|
|
65179
|
-
|
|
65180
|
-
|
|
65181
|
-
|
|
65182
|
-
|
|
65183
|
-
|
|
65184
|
-
|
|
65185
|
-
|
|
65186
|
-
|
|
65196
|
+
let expectedKeyType;
|
|
65197
|
+
let expectedValueType;
|
|
65198
|
+
if ((0, types_1.isAnyOrUnknown)(inferenceContext.expectedType)) {
|
|
65199
|
+
expectedKeyType = inferenceContext.expectedType;
|
|
65200
|
+
expectedValueType = inferenceContext.expectedType;
|
|
65201
|
+
} else {
|
|
65202
|
+
const builtInDict = getBuiltInObject(node, "dict");
|
|
65203
|
+
if (!(0, types_1.isClassInstance)(builtInDict)) {
|
|
65204
|
+
return void 0;
|
|
65205
|
+
}
|
|
65206
|
+
const dictTypeVarContext = new typeVarContext_1.TypeVarContext((0, typeUtils_1.getTypeVarScopeId)(builtInDict));
|
|
65207
|
+
if (!(0, constraintSolver_1.populateTypeVarContextBasedOnExpectedType)(evaluatorInterface, builtInDict, inferenceContext.expectedType, dictTypeVarContext, ParseTreeUtils.getTypeVarScopesForNode(node), node.start)) {
|
|
65208
|
+
return void 0;
|
|
65209
|
+
}
|
|
65210
|
+
const specializedDict = (0, typeUtils_1.applySolvedTypeVars)(types_1.ClassType.cloneAsInstantiable(builtInDict), dictTypeVarContext);
|
|
65211
|
+
if (!specializedDict.typeArguments || specializedDict.typeArguments.length !== 2) {
|
|
65212
|
+
return void 0;
|
|
65213
|
+
}
|
|
65214
|
+
expectedKeyType = specializedDict.typeArguments[0];
|
|
65215
|
+
expectedValueType = specializedDict.typeArguments[1];
|
|
65187
65216
|
}
|
|
65188
|
-
const expectedKeyType = specializedDict.typeArguments[0];
|
|
65189
|
-
const expectedValueType = specializedDict.typeArguments[1];
|
|
65190
65217
|
let isValueTypeInvariant = false;
|
|
65191
65218
|
if ((0, types_1.isClassInstance)(inferenceContext.expectedType)) {
|
|
65192
65219
|
if (inferenceContext.expectedType.details.typeParameters.length >= 2) {
|
|
@@ -65500,22 +65527,27 @@ var require_typeEvaluator = __commonJS({
|
|
|
65500
65527
|
let isIncomplete = false;
|
|
65501
65528
|
let typeErrors = false;
|
|
65502
65529
|
const verifyHashable = node.nodeType === 45;
|
|
65503
|
-
|
|
65504
|
-
|
|
65505
|
-
|
|
65506
|
-
|
|
65507
|
-
|
|
65508
|
-
|
|
65509
|
-
|
|
65510
|
-
|
|
65511
|
-
|
|
65512
|
-
|
|
65513
|
-
|
|
65514
|
-
|
|
65515
|
-
|
|
65516
|
-
|
|
65530
|
+
let expectedEntryType;
|
|
65531
|
+
if ((0, types_1.isAnyOrUnknown)(inferenceContext.expectedType)) {
|
|
65532
|
+
expectedEntryType = inferenceContext.expectedType;
|
|
65533
|
+
} else {
|
|
65534
|
+
if (!(0, types_1.isClassInstance)(inferenceContext.expectedType)) {
|
|
65535
|
+
return void 0;
|
|
65536
|
+
}
|
|
65537
|
+
const builtInListOrSet = getBuiltInObject(node, builtInClassName);
|
|
65538
|
+
if (!(0, types_1.isClassInstance)(builtInListOrSet)) {
|
|
65539
|
+
return void 0;
|
|
65540
|
+
}
|
|
65541
|
+
const typeVarContext = new typeVarContext_1.TypeVarContext((0, typeUtils_1.getTypeVarScopeId)(builtInListOrSet));
|
|
65542
|
+
if (!(0, constraintSolver_1.populateTypeVarContextBasedOnExpectedType)(evaluatorInterface, builtInListOrSet, inferenceContext.expectedType, typeVarContext, ParseTreeUtils.getTypeVarScopesForNode(node), node.start)) {
|
|
65543
|
+
return void 0;
|
|
65544
|
+
}
|
|
65545
|
+
const specializedListOrSet = (0, typeUtils_1.applySolvedTypeVars)(types_1.ClassType.cloneAsInstantiable(builtInListOrSet), typeVarContext);
|
|
65546
|
+
if (!specializedListOrSet.typeArguments || specializedListOrSet.typeArguments.length !== 1) {
|
|
65547
|
+
return void 0;
|
|
65548
|
+
}
|
|
65549
|
+
expectedEntryType = specializedListOrSet.typeArguments[0];
|
|
65517
65550
|
}
|
|
65518
|
-
const expectedEntryType = specializedListOrSet.typeArguments[0];
|
|
65519
65551
|
const entryTypes = [];
|
|
65520
65552
|
const expectedTypeDiagAddendum = new diagnostic_1.DiagnosticAddendum();
|
|
65521
65553
|
node.entries.forEach((entry) => {
|
|
@@ -66062,6 +66094,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
66062
66094
|
functionType.details.declaredReturnType = types_1.UnknownType.create();
|
|
66063
66095
|
functionType.details.typeVarScopeId = ParseTreeUtils.getScopeIdForNode(errorNode);
|
|
66064
66096
|
if (typeArgs && typeArgs.length > 0) {
|
|
66097
|
+
functionType.isCallableWithTypeArgs = true;
|
|
66065
66098
|
if (typeArgs[0].typeList) {
|
|
66066
66099
|
const typeList = typeArgs[0].typeList;
|
|
66067
66100
|
let sawUnpacked = false;
|
|
@@ -66342,7 +66375,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
66342
66375
|
}
|
|
66343
66376
|
const enclosingFunction = ParseTreeUtils.getEnclosingFunction(errorNode);
|
|
66344
66377
|
if (enclosingFunction) {
|
|
66345
|
-
const
|
|
66378
|
+
const functionInfo = (0, decorators_1.getFunctionInfoFromDecorators)(
|
|
66346
66379
|
evaluatorInterface,
|
|
66347
66380
|
enclosingFunction,
|
|
66348
66381
|
/* isInClass */
|
|
@@ -66350,7 +66383,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
66350
66383
|
);
|
|
66351
66384
|
const isInnerFunction = !!ParseTreeUtils.getEnclosingFunction(enclosingFunction);
|
|
66352
66385
|
if (!isInnerFunction) {
|
|
66353
|
-
if (
|
|
66386
|
+
if (functionInfo.flags & 4) {
|
|
66354
66387
|
addDiagnostic(fileInfo.diagnosticRuleSet.reportGeneralTypeIssues, diagnosticRules_1.DiagnosticRule.reportGeneralTypeIssues, localize_1.Localizer.Diagnostic.selfTypeContext(), errorNode);
|
|
66355
66388
|
return types_1.UnknownType.create();
|
|
66356
66389
|
}
|
|
@@ -67945,6 +67978,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
67945
67978
|
}
|
|
67946
67979
|
}
|
|
67947
67980
|
if ((0, types_1.isFunction)(decoratedType)) {
|
|
67981
|
+
decoratedType.details.deprecatedMessage = functionType.details.deprecatedMessage;
|
|
67948
67982
|
if (types_1.FunctionType.isOverloaded(decoratedType)) {
|
|
67949
67983
|
node.parameters.forEach((param) => {
|
|
67950
67984
|
markParamAccessed(param);
|
|
@@ -67985,7 +68019,8 @@ var require_typeEvaluator = __commonJS({
|
|
|
67985
68019
|
if (containingClassNode) {
|
|
67986
68020
|
containingClassType = (_a = getTypeOfClass(containingClassNode)) === null || _a === void 0 ? void 0 : _a.classType;
|
|
67987
68021
|
}
|
|
67988
|
-
|
|
68022
|
+
const functionInfo = (0, decorators_1.getFunctionInfoFromDecorators)(evaluatorInterface, node, !!containingClassNode);
|
|
68023
|
+
let functionFlags = functionInfo.flags;
|
|
67989
68024
|
if (functionDecl === null || functionDecl === void 0 ? void 0 : functionDecl.isGenerator) {
|
|
67990
68025
|
functionFlags |= 16;
|
|
67991
68026
|
}
|
|
@@ -67999,6 +68034,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
67999
68034
|
}
|
|
68000
68035
|
const functionType = types_1.FunctionType.createInstance(node.name.value, getFunctionFullName(node, fileInfo.moduleName, node.name.value), fileInfo.moduleName, functionFlags | 131072, ParseTreeUtils.getDocString(node.suite.statements));
|
|
68001
68036
|
functionType.details.typeVarScopeId = ParseTreeUtils.getScopeIdForNode(node);
|
|
68037
|
+
functionType.details.deprecatedMessage = functionInfo.deprecationMessage;
|
|
68002
68038
|
if (node.name.value === "__init__" || node.name.value === "__new__") {
|
|
68003
68039
|
if (containingClassNode) {
|
|
68004
68040
|
functionType.details.constructorTypeVarScopeId = ParseTreeUtils.getScopeIdForNode(containingClassNode);
|
|
@@ -69392,12 +69428,12 @@ var require_typeEvaluator = __commonJS({
|
|
|
69392
69428
|
return;
|
|
69393
69429
|
}
|
|
69394
69430
|
}
|
|
69395
|
-
const functionFlags = (0, decorators_1.
|
|
69431
|
+
const functionFlags = (0, decorators_1.getFunctionInfoFromDecorators)(
|
|
69396
69432
|
evaluatorInterface,
|
|
69397
69433
|
functionNode,
|
|
69398
69434
|
/* isInClass */
|
|
69399
69435
|
true
|
|
69400
|
-
);
|
|
69436
|
+
).flags;
|
|
69401
69437
|
const inferredParamType = inferParameterType(functionNode, functionFlags, paramIndex, classInfo === null || classInfo === void 0 ? void 0 : classInfo.classType);
|
|
69402
69438
|
writeTypeCache(
|
|
69403
69439
|
node.name,
|
|
@@ -73528,7 +73564,7 @@ var require_typeEvaluator = __commonJS({
|
|
|
73528
73564
|
let isAbstract;
|
|
73529
73565
|
const decl = (0, symbolUtils_1.getLastTypedDeclaredForSymbol)(symbol);
|
|
73530
73566
|
if (decl && decl.type === 5) {
|
|
73531
|
-
const functionFlags = (0, decorators_1.
|
|
73567
|
+
const functionFlags = (0, decorators_1.getFunctionInfoFromDecorators)(evaluatorInterface, decl.node, true).flags;
|
|
73532
73568
|
isAbstract = !!(functionFlags & 8);
|
|
73533
73569
|
} else {
|
|
73534
73570
|
isAbstract = false;
|
|
@@ -76760,7 +76796,8 @@ var require_serviceProviderExtensions = __commonJS({
|
|
|
76760
76796
|
ServiceKeys2.sourceFileFactory = new serviceProvider_1.ServiceKey();
|
|
76761
76797
|
ServiceKeys2.partialStubs = new serviceProvider_1.ServiceKey();
|
|
76762
76798
|
ServiceKeys2.uriMapper = new serviceProvider_1.ServiceKey();
|
|
76763
|
-
ServiceKeys2.
|
|
76799
|
+
ServiceKeys2.symbolDefinitionProvider = new serviceProvider_1.GroupServiceKey();
|
|
76800
|
+
ServiceKeys2.symbolUsageProviderFactory = new serviceProvider_1.GroupServiceKey();
|
|
76764
76801
|
ServiceKeys2.stateMutationListeners = new serviceProvider_1.GroupServiceKey();
|
|
76765
76802
|
})(ServiceKeys = exports.ServiceKeys || (exports.ServiceKeys = {}));
|
|
76766
76803
|
function createServiceProvider(...services2) {
|
|
@@ -80031,21 +80068,6 @@ var require_binder = __commonJS({
|
|
|
80031
80068
|
}
|
|
80032
80069
|
});
|
|
80033
80070
|
|
|
80034
|
-
// node_modules/@zzzen/pyright-internal/dist/common/extensibility.js
|
|
80035
|
-
var require_extensibility = __commonJS({
|
|
80036
|
-
"node_modules/@zzzen/pyright-internal/dist/common/extensibility.js"(exports) {
|
|
80037
|
-
"use strict";
|
|
80038
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
80039
|
-
exports.DeclarationUseCase = void 0;
|
|
80040
|
-
var DeclarationUseCase;
|
|
80041
|
-
(function(DeclarationUseCase2) {
|
|
80042
|
-
DeclarationUseCase2[DeclarationUseCase2["Definition"] = 0] = "Definition";
|
|
80043
|
-
DeclarationUseCase2[DeclarationUseCase2["Rename"] = 1] = "Rename";
|
|
80044
|
-
DeclarationUseCase2[DeclarationUseCase2["References"] = 2] = "References";
|
|
80045
|
-
})(DeclarationUseCase = exports.DeclarationUseCase || (exports.DeclarationUseCase = {}));
|
|
80046
|
-
}
|
|
80047
|
-
});
|
|
80048
|
-
|
|
80049
80071
|
// node_modules/@zzzen/pyright-internal/dist/languageService/definitionProvider.js
|
|
80050
80072
|
var require_definitionProvider = __commonJS({
|
|
80051
80073
|
"node_modules/@zzzen/pyright-internal/dist/languageService/definitionProvider.js"(exports) {
|
|
@@ -80089,7 +80111,6 @@ var require_definitionProvider = __commonJS({
|
|
|
80089
80111
|
var cancellationUtils_1 = require_cancellationUtils();
|
|
80090
80112
|
var collectionUtils_1 = require_collectionUtils();
|
|
80091
80113
|
var core_1 = require_core();
|
|
80092
|
-
var extensibility_1 = require_extensibility();
|
|
80093
80114
|
var positionUtils_1 = require_positionUtils();
|
|
80094
80115
|
var textRange_1 = require_textRange();
|
|
80095
80116
|
var serviceProviderExtensions_1 = require_serviceProviderExtensions();
|
|
@@ -80185,10 +80206,10 @@ var require_definitionProvider = __commonJS({
|
|
|
80185
80206
|
var _a;
|
|
80186
80207
|
(0, cancellationUtils_1.throwIfCancellationRequested)(this.token);
|
|
80187
80208
|
const definitions = [];
|
|
80188
|
-
const
|
|
80189
|
-
if (
|
|
80190
|
-
|
|
80191
|
-
const declarations =
|
|
80209
|
+
const factories = (_a = this._serviceProvider) === null || _a === void 0 ? void 0 : _a.tryGet(serviceProviderExtensions_1.ServiceKeys.symbolDefinitionProvider);
|
|
80210
|
+
if (factories) {
|
|
80211
|
+
factories.forEach((f) => {
|
|
80212
|
+
const declarations = f.tryGetDeclarations(node, offset, this.token);
|
|
80192
80213
|
this.resolveDeclarations(declarations, definitions);
|
|
80193
80214
|
});
|
|
80194
80215
|
}
|
|
@@ -80312,6 +80333,7 @@ var require_stringTokenUtils = __commonJS({
|
|
|
80312
80333
|
"use strict";
|
|
80313
80334
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
80314
80335
|
exports.getUnescapedString = exports.UnescapeErrorType = void 0;
|
|
80336
|
+
var tokenizer_1 = require_tokenizer();
|
|
80315
80337
|
var UnescapeErrorType;
|
|
80316
80338
|
(function(UnescapeErrorType2) {
|
|
80317
80339
|
UnescapeErrorType2[UnescapeErrorType2["InvalidEscapeSequence"] = 0] = "InvalidEscapeSequence";
|
|
@@ -80355,11 +80377,13 @@ var require_stringTokenUtils = __commonJS({
|
|
|
80355
80377
|
};
|
|
80356
80378
|
const addInvalidEscapeOffset = () => {
|
|
80357
80379
|
if (!isRaw) {
|
|
80358
|
-
|
|
80359
|
-
|
|
80360
|
-
|
|
80361
|
-
|
|
80362
|
-
|
|
80380
|
+
if ((stringToken.flags & 131072) === 0 || strOffset < tokenizer_1.maxStringTokenLength) {
|
|
80381
|
+
output.unescapeErrors.push({
|
|
80382
|
+
offset: strOffset - 1,
|
|
80383
|
+
length: 2,
|
|
80384
|
+
errorType: 0
|
|
80385
|
+
});
|
|
80386
|
+
}
|
|
80363
80387
|
}
|
|
80364
80388
|
};
|
|
80365
80389
|
const getEscapedCharacter = (offset = 0) => {
|
|
@@ -84124,7 +84148,7 @@ var require_checker = __commonJS({
|
|
|
84124
84148
|
this._reportUnboundName(node);
|
|
84125
84149
|
}
|
|
84126
84150
|
const type = this._evaluator.getType(node);
|
|
84127
|
-
this.
|
|
84151
|
+
this._reportDeprecatedUseForType(node, type);
|
|
84128
84152
|
return true;
|
|
84129
84153
|
}
|
|
84130
84154
|
visitDel(node) {
|
|
@@ -84135,9 +84159,14 @@ var require_checker = __commonJS({
|
|
|
84135
84159
|
return false;
|
|
84136
84160
|
}
|
|
84137
84161
|
visitMemberAccess(node) {
|
|
84138
|
-
|
|
84162
|
+
var _a;
|
|
84163
|
+
const typeResult = this._evaluator.getTypeResult(node);
|
|
84164
|
+
const type = (_a = typeResult === null || typeResult === void 0 ? void 0 : typeResult.type) !== null && _a !== void 0 ? _a : types_1.UnknownType.create();
|
|
84139
84165
|
const leftExprType = this._evaluator.getType(node.leftExpression);
|
|
84140
|
-
this.
|
|
84166
|
+
this._reportDeprecatedUseForType(node.memberName, type, leftExprType && (0, types_1.isModule)(leftExprType) && leftExprType.moduleName === "typing");
|
|
84167
|
+
if (typeResult === null || typeResult === void 0 ? void 0 : typeResult.memberAccessDeprecationInfo) {
|
|
84168
|
+
this._reportDeprecatedUseForMemberAccess(node.memberName, typeResult.memberAccessDeprecationInfo);
|
|
84169
|
+
}
|
|
84141
84170
|
this._conditionallyReportPrivateUsage(node.memberName);
|
|
84142
84171
|
this.walk(node.leftExpression);
|
|
84143
84172
|
return false;
|
|
@@ -84204,7 +84233,7 @@ var require_checker = __commonJS({
|
|
|
84204
84233
|
}
|
|
84205
84234
|
}
|
|
84206
84235
|
const type = this._evaluator.getType((_b = node.alias) !== null && _b !== void 0 ? _b : node.name);
|
|
84207
|
-
this.
|
|
84236
|
+
this._reportDeprecatedUseForType(node.name, type, isImportFromTyping);
|
|
84208
84237
|
return false;
|
|
84209
84238
|
}
|
|
84210
84239
|
visitModuleName(node) {
|
|
@@ -85611,7 +85640,7 @@ var require_checker = __commonJS({
|
|
|
85611
85640
|
const filterType = (varType) => {
|
|
85612
85641
|
const filteredTypes = [];
|
|
85613
85642
|
for (const filterType2 of classTypeList) {
|
|
85614
|
-
const filterIsSuperclass = (0, typeGuards_1.isIsinstanceFilterSuperclass)(this._evaluator, varType, filterType2, filterType2, isInstanceCheck);
|
|
85643
|
+
const filterIsSuperclass = (0, typeGuards_1.isIsinstanceFilterSuperclass)(this._evaluator, varType, varType, filterType2, filterType2, isInstanceCheck);
|
|
85615
85644
|
const filterIsSubclass = (0, typeGuards_1.isIsinstanceFilterSubclass)(this._evaluator, varType, filterType2, isInstanceCheck);
|
|
85616
85645
|
const isClassRelationshipIndeterminate = filterIsSuperclass && filterIsSubclass && !types_1.ClassType.isSameGenericClass(varType, filterType2);
|
|
85617
85646
|
if (isClassRelationshipIndeterminate) {
|
|
@@ -85693,7 +85722,9 @@ var require_checker = __commonJS({
|
|
|
85693
85722
|
}
|
|
85694
85723
|
break;
|
|
85695
85724
|
case 5:
|
|
85696
|
-
|
|
85725
|
+
if (!types_1.TypeBase.isInstantiable(subtype) || subtype.isCallableWithTypeArgs) {
|
|
85726
|
+
isSupported = false;
|
|
85727
|
+
}
|
|
85697
85728
|
break;
|
|
85698
85729
|
case 9:
|
|
85699
85730
|
isSupported = this._isTypeSupportedTypeForIsInstance(subtype, isInstanceCheck);
|
|
@@ -85718,7 +85749,30 @@ var require_checker = __commonJS({
|
|
|
85718
85749
|
}
|
|
85719
85750
|
return false;
|
|
85720
85751
|
}
|
|
85721
|
-
|
|
85752
|
+
_reportDeprecatedUseForMemberAccess(node, info) {
|
|
85753
|
+
let errorMessage;
|
|
85754
|
+
if (info.accessType === "property") {
|
|
85755
|
+
if (info.accessMethod === "get") {
|
|
85756
|
+
errorMessage = localize_1.Localizer.Diagnostic.deprecatedPropertyGetter().format({ name: node.value });
|
|
85757
|
+
} else if (info.accessMethod === "set") {
|
|
85758
|
+
errorMessage = localize_1.Localizer.Diagnostic.deprecatedPropertySetter().format({ name: node.value });
|
|
85759
|
+
} else {
|
|
85760
|
+
errorMessage = localize_1.Localizer.Diagnostic.deprecatedPropertyDeleter().format({ name: node.value });
|
|
85761
|
+
}
|
|
85762
|
+
} else if (info.accessType === "descriptor") {
|
|
85763
|
+
if (info.accessMethod === "get") {
|
|
85764
|
+
errorMessage = localize_1.Localizer.Diagnostic.deprecatedDescriptorGetter().format({ name: node.value });
|
|
85765
|
+
} else if (info.accessMethod === "set") {
|
|
85766
|
+
errorMessage = localize_1.Localizer.Diagnostic.deprecatedDescriptorSetter().format({ name: node.value });
|
|
85767
|
+
} else {
|
|
85768
|
+
errorMessage = localize_1.Localizer.Diagnostic.deprecatedDescriptorDeleter().format({ name: node.value });
|
|
85769
|
+
}
|
|
85770
|
+
}
|
|
85771
|
+
if (errorMessage) {
|
|
85772
|
+
this._reportDeprecatedDiagnostic(node, errorMessage, info.deprecationMessage);
|
|
85773
|
+
}
|
|
85774
|
+
}
|
|
85775
|
+
_reportDeprecatedUseForType(node, type, isImportFromTyping = false) {
|
|
85722
85776
|
var _a, _b;
|
|
85723
85777
|
if (!type) {
|
|
85724
85778
|
return;
|
|
@@ -85790,15 +85844,7 @@ var require_checker = __commonJS({
|
|
|
85790
85844
|
}
|
|
85791
85845
|
});
|
|
85792
85846
|
if (errorMessage) {
|
|
85793
|
-
|
|
85794
|
-
if (deprecatedMessage) {
|
|
85795
|
-
diag.addMessage(deprecatedMessage);
|
|
85796
|
-
}
|
|
85797
|
-
if (this._fileInfo.diagnosticRuleSet.reportDeprecated === "none") {
|
|
85798
|
-
this._evaluator.addDeprecated(errorMessage + diag.getString(), node);
|
|
85799
|
-
} else {
|
|
85800
|
-
this._evaluator.addDiagnostic(this._fileInfo.diagnosticRuleSet.reportDeprecated, diagnosticRules_1.DiagnosticRule.reportDeprecated, errorMessage + diag.getString(), node);
|
|
85801
|
-
}
|
|
85847
|
+
this._reportDeprecatedDiagnostic(node, errorMessage, deprecatedMessage);
|
|
85802
85848
|
}
|
|
85803
85849
|
if (this._fileInfo.diagnosticRuleSet.deprecateTypingAliases) {
|
|
85804
85850
|
const deprecatedForm = (_a = deprecatedSymbols_1.deprecatedAliases.get(node.value)) !== null && _a !== void 0 ? _a : deprecatedSymbols_1.deprecatedSpecialForms.get(node.value);
|
|
@@ -85823,6 +85869,17 @@ var require_checker = __commonJS({
|
|
|
85823
85869
|
}
|
|
85824
85870
|
}
|
|
85825
85871
|
}
|
|
85872
|
+
_reportDeprecatedDiagnostic(node, diagnosticMessage, deprecatedMessage) {
|
|
85873
|
+
const diag = new diagnostic_1.DiagnosticAddendum();
|
|
85874
|
+
if (deprecatedMessage) {
|
|
85875
|
+
diag.addMessage(deprecatedMessage);
|
|
85876
|
+
}
|
|
85877
|
+
if (this._fileInfo.diagnosticRuleSet.reportDeprecated === "none") {
|
|
85878
|
+
this._evaluator.addDeprecated(diagnosticMessage + diag.getString(), node);
|
|
85879
|
+
} else {
|
|
85880
|
+
this._evaluator.addDiagnostic(this._fileInfo.diagnosticRuleSet.reportDeprecated, diagnosticRules_1.DiagnosticRule.reportDeprecated, diagnosticMessage + diag.getString(), node);
|
|
85881
|
+
}
|
|
85882
|
+
}
|
|
85826
85883
|
_reportUnboundName(node) {
|
|
85827
85884
|
if (this._fileInfo.diagnosticRuleSet.reportUnboundVariable === "none") {
|
|
85828
85885
|
return;
|
|
@@ -111117,6 +111174,17 @@ var TypeInlayHintsProvider = class {
|
|
|
111117
111174
|
this.client = client;
|
|
111118
111175
|
this._onDidChangeInlayHints = new import_coc11.Emitter();
|
|
111119
111176
|
this.onDidChangeInlayHints = this._onDidChangeInlayHints.event;
|
|
111177
|
+
import_coc11.workspace.onDidChangeConfiguration((e) => {
|
|
111178
|
+
if (e.affectsConfiguration("pyright.inlayHints")) {
|
|
111179
|
+
this._onDidChangeInlayHints.fire();
|
|
111180
|
+
}
|
|
111181
|
+
});
|
|
111182
|
+
import_coc11.workspace.onDidChangeTextDocument((e) => {
|
|
111183
|
+
const doc = import_coc11.workspace.getDocument(e.bufnr);
|
|
111184
|
+
if (doc.languageId === "python") {
|
|
111185
|
+
this._onDidChangeInlayHints.fire();
|
|
111186
|
+
}
|
|
111187
|
+
});
|
|
111120
111188
|
}
|
|
111121
111189
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
111122
111190
|
async provideInlayHints(document, _range, _token) {
|
|
@@ -112654,6 +112722,10 @@ function configuration(params, token, next) {
|
|
|
112654
112722
|
config["pythonPath"] = PythonSettings.getInstance().pythonPath;
|
|
112655
112723
|
const analysis = config["analysis"];
|
|
112656
112724
|
analysis["stubPath"] = import_coc31.workspace.expand(analysis["stubPath"]);
|
|
112725
|
+
const inspect = import_coc31.workspace.getConfiguration("python.analysis").inspect("stubPath");
|
|
112726
|
+
if (inspect && (inspect.globalValue === void 0 || inspect.workspaceValue === void 0 || inspect.workspaceFolderValue === void 0)) {
|
|
112727
|
+
delete analysis["stubPath"];
|
|
112728
|
+
}
|
|
112657
112729
|
const extraPaths = analysis["extraPaths"];
|
|
112658
112730
|
if (extraPaths == null ? void 0 : extraPaths.length) {
|
|
112659
112731
|
analysis["extraPaths"] = extraPaths.map((p) => import_coc31.workspace.expand(p));
|
|
@@ -112672,6 +112744,10 @@ function configuration(params, token, next) {
|
|
|
112672
112744
|
const custom = () => {
|
|
112673
112745
|
const analysis = toJSONObject(import_coc31.workspace.getConfiguration(analysisItem.section, analysisItem.scopeUri));
|
|
112674
112746
|
analysis["stubPath"] = import_coc31.workspace.expand(analysis["stubPath"]);
|
|
112747
|
+
const inspect = import_coc31.workspace.getConfiguration("python.analysis").inspect("stubPath");
|
|
112748
|
+
if (inspect && (inspect.globalValue === void 0 || inspect.workspaceValue === void 0 || inspect.workspaceFolderValue === void 0)) {
|
|
112749
|
+
delete analysis["stubPath"];
|
|
112750
|
+
}
|
|
112675
112751
|
const extraPaths = analysis["extraPaths"];
|
|
112676
112752
|
if (extraPaths == null ? void 0 : extraPaths.length) {
|
|
112677
112753
|
analysis["extraPaths"] = extraPaths.map((p) => import_coc31.workspace.expand(p));
|