@zzzen/pyright-internal 1.2.0-dev.20240407 → 1.2.0-dev.20240421

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.
Files changed (120) hide show
  1. package/dist/analyzer/binder.js +13 -0
  2. package/dist/analyzer/binder.js.map +1 -1
  3. package/dist/analyzer/checker.js +21 -12
  4. package/dist/analyzer/checker.js.map +1 -1
  5. package/dist/analyzer/constraintSolver.js +24 -8
  6. package/dist/analyzer/constraintSolver.js.map +1 -1
  7. package/dist/analyzer/constructors.d.ts +2 -2
  8. package/dist/analyzer/constructors.js +174 -109
  9. package/dist/analyzer/constructors.js.map +1 -1
  10. package/dist/analyzer/dataClasses.js +15 -1
  11. package/dist/analyzer/dataClasses.js.map +1 -1
  12. package/dist/analyzer/importResolver.js +1 -1
  13. package/dist/analyzer/importResolver.js.map +1 -1
  14. package/dist/analyzer/importStatementUtils.js +1 -1
  15. package/dist/analyzer/importStatementUtils.js.map +1 -1
  16. package/dist/analyzer/parseTreeUtils.d.ts +2 -0
  17. package/dist/analyzer/parseTreeUtils.js +24 -1
  18. package/dist/analyzer/parseTreeUtils.js.map +1 -1
  19. package/dist/analyzer/properties.js +2 -2
  20. package/dist/analyzer/protocols.js +5 -5
  21. package/dist/analyzer/protocols.js.map +1 -1
  22. package/dist/analyzer/pyTypedUtils.d.ts +4 -0
  23. package/dist/analyzer/pyTypedUtils.js +17 -3
  24. package/dist/analyzer/pyTypedUtils.js.map +1 -1
  25. package/dist/analyzer/service.d.ts +0 -2
  26. package/dist/analyzer/service.js +1 -4
  27. package/dist/analyzer/service.js.map +1 -1
  28. package/dist/analyzer/symbolUtils.d.ts +1 -1
  29. package/dist/analyzer/symbolUtils.js +3 -3
  30. package/dist/analyzer/symbolUtils.js.map +1 -1
  31. package/dist/analyzer/typeEvaluator.d.ts +3 -1
  32. package/dist/analyzer/typeEvaluator.js +167 -76
  33. package/dist/analyzer/typeEvaluator.js.map +1 -1
  34. package/dist/analyzer/typeEvaluatorTypes.d.ts +3 -1
  35. package/dist/analyzer/typeEvaluatorWithTracker.js +4 -2
  36. package/dist/analyzer/typeEvaluatorWithTracker.js.map +1 -1
  37. package/dist/analyzer/typeGuards.js +105 -57
  38. package/dist/analyzer/typeGuards.js.map +1 -1
  39. package/dist/analyzer/typeUtils.d.ts +1 -1
  40. package/dist/analyzer/typeUtils.js +20 -17
  41. package/dist/analyzer/typeUtils.js.map +1 -1
  42. package/dist/analyzer/typeVarContext.js +1 -1
  43. package/dist/analyzer/typeVarContext.js.map +1 -1
  44. package/dist/analyzer/typedDicts.js +1 -1
  45. package/dist/analyzer/typedDicts.js.map +1 -1
  46. package/dist/analyzer/types.d.ts +2 -2
  47. package/dist/analyzer/types.js +28 -8
  48. package/dist/analyzer/types.js.map +1 -1
  49. package/dist/backgroundAnalysisBase.js +3 -1
  50. package/dist/backgroundAnalysisBase.js.map +1 -1
  51. package/dist/backgroundThreadBase.d.ts +5 -5
  52. package/dist/backgroundThreadBase.js +8 -6
  53. package/dist/backgroundThreadBase.js.map +1 -1
  54. package/dist/commands/dumpFileDebugInfoCommand.d.ts +5 -0
  55. package/dist/commands/dumpFileDebugInfoCommand.js +83 -74
  56. package/dist/commands/dumpFileDebugInfoCommand.js.map +1 -1
  57. package/dist/common/core.d.ts +5 -0
  58. package/dist/common/core.js +8 -1
  59. package/dist/common/core.js.map +1 -1
  60. package/dist/common/fileSystem.d.ts +0 -1
  61. package/dist/common/fileSystem.js +1 -1
  62. package/dist/common/fileSystem.js.map +1 -1
  63. package/dist/common/realFileSystem.d.ts +35 -1
  64. package/dist/common/realFileSystem.js +4 -1
  65. package/dist/common/realFileSystem.js.map +1 -1
  66. package/dist/common/uri/uri.d.ts +2 -0
  67. package/dist/common/uri/uri.js +9 -4
  68. package/dist/common/uri/uri.js.map +1 -1
  69. package/dist/languageService/completionProvider.d.ts +0 -2
  70. package/dist/languageService/completionProvider.js +7 -28
  71. package/dist/languageService/completionProvider.js.map +1 -1
  72. package/dist/languageService/symbolIndexer.js +1 -1
  73. package/dist/languageService/symbolIndexer.js.map +1 -1
  74. package/dist/languageService/tooltipUtils.d.ts +1 -1
  75. package/dist/languageService/tooltipUtils.js +4 -4
  76. package/dist/localization/localize.d.ts +7 -0
  77. package/dist/localization/localize.js +5 -0
  78. package/dist/localization/localize.js.map +1 -1
  79. package/dist/localization/package.nls.cs.json +4 -0
  80. package/dist/localization/package.nls.de.json +5 -1
  81. package/dist/localization/package.nls.en-us.json +28 -23
  82. package/dist/localization/package.nls.es.json +8 -4
  83. package/dist/localization/package.nls.fr.json +8 -4
  84. package/dist/localization/package.nls.it.json +5 -1
  85. package/dist/localization/package.nls.ja.json +4 -0
  86. package/dist/localization/package.nls.ko.json +7 -3
  87. package/dist/localization/package.nls.pl.json +7 -3
  88. package/dist/localization/package.nls.pt-br.json +4 -0
  89. package/dist/localization/package.nls.qps-ploc.json +4 -0
  90. package/dist/localization/package.nls.ru.json +5 -1
  91. package/dist/localization/package.nls.tr.json +6 -2
  92. package/dist/localization/package.nls.zh-cn.json +5 -1
  93. package/dist/localization/package.nls.zh-tw.json +4 -0
  94. package/dist/parser/parser.js +3 -2
  95. package/dist/parser/parser.js.map +1 -1
  96. package/dist/parser/tokenizer.js +1 -0
  97. package/dist/parser/tokenizer.js.map +1 -1
  98. package/dist/parser/tokenizerTypes.d.ts +1 -0
  99. package/dist/parser/tokenizerTypes.js +1 -0
  100. package/dist/parser/tokenizerTypes.js.map +1 -1
  101. package/dist/tests/config.test.js +11 -0
  102. package/dist/tests/config.test.js.map +1 -1
  103. package/dist/tests/harness/fourslash/testState.d.ts +1 -1
  104. package/dist/tests/harness/fourslash/testState.js +2 -2
  105. package/dist/tests/harness/fourslash/testState.js.map +1 -1
  106. package/dist/tests/harness/fourslash/workspaceEditTestUtils.d.ts +2 -2
  107. package/dist/tests/harness/fourslash/workspaceEditTestUtils.js +5 -5
  108. package/dist/tests/harness/fourslash/workspaceEditTestUtils.js.map +1 -1
  109. package/dist/tests/importStatementUtils.test.js +1 -1
  110. package/dist/tests/importStatementUtils.test.js.map +1 -1
  111. package/dist/tests/tokenizer.test.js +4 -4
  112. package/dist/tests/tokenizer.test.js.map +1 -1
  113. package/dist/tests/typeEvaluator1.test.js +5 -1
  114. package/dist/tests/typeEvaluator1.test.js.map +1 -1
  115. package/dist/tests/typeEvaluator2.test.js +4 -0
  116. package/dist/tests/typeEvaluator2.test.js.map +1 -1
  117. package/dist/tests/typeEvaluator3.test.js +11 -7
  118. package/dist/tests/typeEvaluator3.test.js.map +1 -1
  119. package/dist/tests/typeEvaluator4.test.js +2 -2
  120. package/package.json +2 -2
@@ -17,8 +17,10 @@
17
17
  "abstractMethodInvocation": "No se puede llamar al método \"{method}\" porque es abstracto y no se ha implementado.",
18
18
  "annotatedParamCountMismatch": "El recuento de anotaciones del parámetro no coincide: se esperaba {expected}, pero se recibió {received}",
19
19
  "annotatedTypeArgMissing": "Se espera un argumento de tipo y una o más anotaciones para \"Anotado\".",
20
+ "annotationBytesString": "Type annotations cannot use bytes string literals",
20
21
  "annotationFormatString": "Las anotaciones de tipo no pueden utilizar literales de cadena de formato (cadenas f)",
21
22
  "annotationNotSupported": "No se admite la anotación de tipo para esta declaración",
23
+ "annotationRawString": "Type annotations cannot use raw string literals",
22
24
  "annotationSpansStrings": "Las anotaciones de tipo no pueden abarcar varios literales de cadena",
23
25
  "annotationStringEscape": "Las anotaciones de tipo no pueden contener caracteres de escape",
24
26
  "argAssignment": "Argumento de tipo \"{argType}\" no puede ser asignado a parámetro de tipo \"{paramType}\"",
@@ -104,7 +106,7 @@
104
106
  "dataClassFieldWithDefault": "Los campos sin valores predeterminados no pueden aparecer después de los campos con valores predeterminados",
105
107
  "dataClassFieldWithPrivateName": "El campo Dataclass no puede utilizar un nombre privado",
106
108
  "dataClassFieldWithoutAnnotation": "El campo Dataclass sin anotación de tipo provocará una excepción en tiempo de ejecución",
107
- "dataClassPostInitParamCount": "Dataclass __post_init__ recuento de parámetros incorrecto; el número de campos InitVar es {esperado}.",
109
+ "dataClassPostInitParamCount": "Dataclass __post_init__ recuento de parámetros incorrecto; el número de campos InitVar es {expected}.",
108
110
  "dataClassPostInitType": "El tipo de parámetro del método __post_init__ de la clase de datos no coincide con el del campo \"{fieldName}\".",
109
111
  "dataClassSlotsOverwrite": "__slots__ ya está definido en la clase",
110
112
  "dataClassTransformExpectedBoolLiteral": "Expresión esperada que se evalúa estáticamente como True o False",
@@ -255,7 +257,7 @@
255
257
  "initVarNotAllowed": "\"InitVar\" no se permite en este contexto",
256
258
  "instanceMethodSelfParam": "Los métodos de instancia deben tomar un parámetro \"auto\"",
257
259
  "instanceVarOverridesClassVar": "La variable de instancia \"{name}\" invalida la variable de clase del mismo nombre en la clase \"{className}\"",
258
- "instantiateAbstract": "No se puede instanciar la clase abstracta \"{tipo}\"",
260
+ "instantiateAbstract": "No se puede instanciar la clase abstracta \"{type}\"",
259
261
  "instantiateProtocol": "No se puede crear una instancia de la clase de protocolo \"{type}\"",
260
262
  "internalBindError": "Se ha producido un error interno al vincular el archivo \"{file}\": {message}",
261
263
  "internalParseError": "Se ha producido un error interno al procesar el archivo \"{file}\": {message}",
@@ -275,6 +277,7 @@
275
277
  "listAssignmentMismatch": "La expresión con el tipo \"{type}\" no puede asignarse a la lista de destino",
276
278
  "listInAnnotation": "Expresión de lista no permitida en anotación de tipo",
277
279
  "literalEmptyArgs": "Se esperaban uno o varios argumentos de tipo después de \"Literal\"",
280
+ "literalNamedUnicodeEscape": "Named unicode escape sequences are not supported in \"Literal\" string annotations",
278
281
  "literalNotAllowed": "\"Literal\" no se puede usar en este contexto sin un argumento de tipo",
279
282
  "literalNotCallable": "El tipo literal no puede instanciarse",
280
283
  "literalUnsupportedType": "Los argumentos de tipo para \"Literal\" deben ser None, un valor literal (int, bool, str, o bytes), o un valor enum",
@@ -597,7 +600,7 @@
597
600
  "unpackedDictArgumentNotMapping": "La expresión del argumento después de ** debe ser un mapeo con un tipo de clave \"str\".",
598
601
  "unpackedDictSubscriptIllegal": "El operador de desempaquetado del diccionario en el subíndice no está permitido",
599
602
  "unpackedSubscriptIllegal": "El operador de desempaquetado en el subíndice requiere Python 3.11 o posterior.",
600
- "unpackedTypeVarTupleExpected": "Se espera un TypeVarTuple desempaquetado; use Unpack[{nombre1}] o *{name2}",
603
+ "unpackedTypeVarTupleExpected": "Se espera un TypeVarTuple desempaquetado; use Unpack[{name1}] o *{name2}",
601
604
  "unpackedTypedDictArgument": "No se puede emparejar el argumento TypedDict desempaquetado con los parámetros",
602
605
  "unreachableCode": "El código es inalcanzable",
603
606
  "unreachableExcept": "La cláusula Excepto es inalcanzable porque la excepción ya está administrada",
@@ -667,7 +670,7 @@
667
670
  "keyUndefined": "\"{name}\" no es una clave definida en \"{type}\"",
668
671
  "kwargsParamMissing": "El parámetro \"**{paramName}\" no tiene ningún parámetro correspondiente.",
669
672
  "listAssignmentMismatch": "El tipo \"{type}\" es incompatible con la lista de objetivos",
670
- "literalAssignmentMismatch": "\"{sourceType}\" no puede asignarse al tipo \"{tipoDest}\"",
673
+ "literalAssignmentMismatch": "\"{sourceType}\" no puede asignarse al tipo \"{destType}\"",
671
674
  "matchIsNotExhaustiveHint": "Si no se pretende un tratamiento exhaustivo, agregue \"case _: pass\"",
672
675
  "matchIsNotExhaustiveType": "Tipo no manejado: \"{type}\"",
673
676
  "memberAssignment": "La expresión de tipo \"{type}\" no se puede asignar al miembro \"{name}\" de la clase \"{classType}\"",
@@ -784,6 +787,7 @@
784
787
  "typedDictFieldTypeMismatch": "El tipo \"{type}\" no se puede asignar al elemento \"{name}\"",
785
788
  "typedDictFieldUndefined": "\"{name}\" es un elemento no definido en el tipo \"{type}\"",
786
789
  "typedDictFinalMismatch": "\"{sourceType}\" no es compatible con \"{destType}\" debido a una discrepancia @final",
790
+ "typedDictKeyAccess": "Utilizar [\"{name}\"] para hacer referencia al elemento en TypedDict",
787
791
  "typedDictNotAllowed": "No se puede usar TypedDict para comprobaciones de instancia o clase",
788
792
  "unhashableType": "El tipo \"{type}\" no admite hash",
789
793
  "uninitializedAbstractVariable": "La variable de instancia \"{name}\" está definida en la clase base abstracta \"{classType} \" pero no inicializada.",
@@ -17,8 +17,10 @@
17
17
  "abstractMethodInvocation": "Désolé, nous n’avons pas pu appeler la méthode « {method} », car elle est abstraite et non implémentée",
18
18
  "annotatedParamCountMismatch": "Non-concordance du nombre d'annotations de paramètre : attendu {expected} mais reçu {received}",
19
19
  "annotatedTypeArgMissing": "Un argument de type et une ou plusieurs annotations sont attendus pour « Annotation »",
20
+ "annotationBytesString": "Type annotations cannot use bytes string literals",
20
21
  "annotationFormatString": "Les annotations de type ne peuvent pas utiliser de littéraux de chaîne de format (f-strings)",
21
22
  "annotationNotSupported": "Annotation de type non prise en charge pour cette instruction",
23
+ "annotationRawString": "Type annotations cannot use raw string literals",
22
24
  "annotationSpansStrings": "Les annotations de type ne peuvent pas s'étendre sur plusieurs littéraux de chaîne",
23
25
  "annotationStringEscape": "Les annotations de type ne peuvent pas contenir de caractères d'échappement",
24
26
  "argAssignment": "Impossible d’affecter l’argument de type « {argType} » au paramètre de type « {paramType} »",
@@ -89,7 +91,7 @@
89
91
  "concatenateParamSpecMissing": "Le dernier argument de type pour « Concatener » doit être un ParamSpec ou bien « ... »",
90
92
  "concatenateTypeArgsMissing": "\"Concaténation\" nécessite au moins deux arguments de type",
91
93
  "conditionalOperandInvalid": "Opérande conditionnel non valide de type \"{type}\"",
92
- "constantRedefinition": "\"{nom}\" est constant (car il est en majuscule) et ne peut pas être redéfini",
94
+ "constantRedefinition": "\"{name}\" est constant (car il est en majuscule) et ne peut pas être redéfini",
93
95
  "constructorNoArgs": "Aucun argument attendu pour le constructeur « {type} »",
94
96
  "constructorParametersMismatch": "Non-concordance entre la signature de __new__ et __init__ dans la classe \"{classType}\"",
95
97
  "containmentAlwaysFalse": "L'expression sera toujours évaluée à False car les types \"{leftType}\" et \"{rightType}\" ne se chevauchent pas",
@@ -275,6 +277,7 @@
275
277
  "listAssignmentMismatch": "Impossible d’affecter l’expression de type « {type} » à la liste cible",
276
278
  "listInAnnotation": "Expression de liste non autorisée dans l’annotation de type",
277
279
  "literalEmptyArgs": "Attendu un ou plusieurs arguments de type après \"Literal\"",
280
+ "literalNamedUnicodeEscape": "Named unicode escape sequences are not supported in \"Literal\" string annotations",
278
281
  "literalNotAllowed": "\"Littéral\" ne peut pas être utilisé dans ce contexte sans argument de type",
279
282
  "literalNotCallable": "Impossible d’instancier le type littéral",
280
283
  "literalUnsupportedType": "Les arguments de type pour « Literal » doivent être None, une valeur littérale (int, bool, str ou bytes) ou une valeur enum",
@@ -480,7 +483,7 @@
480
483
  "typeArgsMissingForAlias": "Arguments de type attendus pour l’alias de type générique « {name} »",
481
484
  "typeArgsMissingForClass": "Arguments de type attendus pour la classe générique \"{name}\"",
482
485
  "typeArgsTooFew": "Trop peu d’arguments de type fournis pour « {name} » ; {expected} attendu, mais {received} reçu",
483
- "typeArgsTooMany": "Trop d'arguments de type fournis pour \"{name}\" ; attendu {attendu} mais reçu {reçu}",
486
+ "typeArgsTooMany": "Trop d'arguments de type fournis pour \"{name}\" ; attendu {expected} mais reçu {received}",
484
487
  "typeAssignmentMismatch": "Impossible d’affecter l’expression de type « {sourceType} » au type déclaré « {destType} »",
485
488
  "typeAssignmentMismatchWildcard": "Le symbole d’importation « {name} » a le type « {sourceType} », qui ne peut pas être affecté au type déclaré « {destType} »",
486
489
  "typeCallNotAllowed": "l’appel type() ne doit pas être utilisé dans l’annotation de type",
@@ -628,7 +631,7 @@
628
631
  "argParam": "L’argument correspond au paramètre « {paramName} »",
629
632
  "argParamFunction": "L’argument correspond au paramètre « {paramName} » dans la fonction « {functionName} »",
630
633
  "argsParamMissing": "Le paramètre \"*{paramName}\" n'a pas de paramètre correspondant",
631
- "argsPositionOnly": "Non-concordance des paramètres de position uniquement ; attendu {attendu} mais reçu {reçu}",
634
+ "argsPositionOnly": "Non-concordance des paramètres de position uniquement ; attendu {expected} mais reçu {received}",
632
635
  "argumentType": "Le type d’argument est « {type} »",
633
636
  "argumentTypes": "Types d'argument : ({types})",
634
637
  "assignToNone": "Le type ne peut pas être affecté au type « None »",
@@ -758,7 +761,7 @@
758
761
  "typeIncompatible": "« {sourceType} » n’est pas compatible avec « {destType} »",
759
762
  "typeNotClass": "« {type} » n’est pas une classe",
760
763
  "typeNotStringLiteral": "\"{type}\" n'est pas un littéral de chaîne",
761
- "typeOfSymbol": "Le type de \"{nom}\" est \"{type}\"",
764
+ "typeOfSymbol": "Le type de \"{name}\" est \"{type}\"",
762
765
  "typeParamSpec": "Le type « {type} » n’est pas compatible avec ParamSpec « {name} »",
763
766
  "typeUnsupported": "Le type « {type} » n’est pas pris en charge",
764
767
  "typeVarDefaultOutOfScope": "La variable de type « {name} » n’est pas dans l’étendue",
@@ -784,6 +787,7 @@
784
787
  "typedDictFieldTypeMismatch": "Le type « {type} » n'est pas attribuable à l’élément « {name} »",
785
788
  "typedDictFieldUndefined": "« {name} » est un élément non défini dans le type « {type} »",
786
789
  "typedDictFinalMismatch": "« {sourceType} » n’est pas compatible avec « {destType} » en raison d’une incompatibilité de @final",
790
+ "typedDictKeyAccess": "Utilisez [« {name} »] pour référencer l’élément dans TypedDict",
787
791
  "typedDictNotAllowed": "TypedDict ne peut pas être utilisé pour les vérifications d’instance ou de classe",
788
792
  "unhashableType": "Le type \"{type}\" n'est pas hachable",
789
793
  "uninitializedAbstractVariable": "La variable d’instance « {name} » est définie dans la classe de base abstraite « {classType} » mais n’est pas initialisée",
@@ -17,8 +17,10 @@
17
17
  "abstractMethodInvocation": "Impossibile chiamare il metodo \"{method}\" perché è astratto e non implementato",
18
18
  "annotatedParamCountMismatch": "Numero di annotazioni dei parametro non corrispondente: previsto {expected} ma ricevuto {received}",
19
19
  "annotatedTypeArgMissing": "Previsto un argomento di tipo e una o più annotazioni per \"Annotato\"",
20
+ "annotationBytesString": "Type annotations cannot use bytes string literals",
20
21
  "annotationFormatString": "Le annotazioni di tipo non possono usare valori letterali stringa di formato (stringhe f)",
21
22
  "annotationNotSupported": "Annotazione di tipo non supportata per questa istruzione",
23
+ "annotationRawString": "Type annotations cannot use raw string literals",
22
24
  "annotationSpansStrings": "Le annotazioni di tipo non possono estendersi su più valori letterali stringa",
23
25
  "annotationStringEscape": "Le annotazioni di tipo non possono contenere caratteri di escape",
24
26
  "argAssignment": "Non è possibile assegnare l'argomento di tipo \"{argType}\" al parametro di tipo \"{paramType}\"",
@@ -275,6 +277,7 @@
275
277
  "listAssignmentMismatch": "Non è possibile assegnare l'espressione con tipo \"{type}\" all'elenco di destinazione",
276
278
  "listInAnnotation": "Espressione elenco non consentita nell'annotazione di tipo",
277
279
  "literalEmptyArgs": "Previsto uno o più argomenti tipo dopo \"Valore letterale\"",
280
+ "literalNamedUnicodeEscape": "Named unicode escape sequences are not supported in \"Literal\" string annotations",
278
281
  "literalNotAllowed": "Non è possibile usare \"Literal\" in questo contesto senza un argomento tipo",
279
282
  "literalNotCallable": "Non è possibile creare un'istanza del tipo letterale",
280
283
  "literalUnsupportedType": "Gli argomenti di tipo per \"Literal\" devono essere None, un valore letterale (int, bool, str o bytes) o un valore di enumerazione",
@@ -717,7 +720,7 @@
717
720
  "overrideParamNameExtra": "Parametro \"{name}\" mancante nella base",
718
721
  "overrideParamNameMissing": "Parametro \"{name}\" mancante nell'override",
719
722
  "overrideParamNamePositionOnly": "Mancata corrispondenza del parametro {index}: il parametro di base \"{baseName}\" è un parametro di parola chiave, il parametro di override è di sola posizione",
720
- "overrideParamNoDefault": "Parametro \"{name}\" non corrispondente: il parametro di base ha un valore di argomento predefinito, il parametro di override non è",
723
+ "overrideParamNoDefault": "Parametro \"{index}\" non corrispondente: il parametro di base ha un valore di argomento predefinito, il parametro di override non è",
721
724
  "overrideParamType": "Tipo di parametro {index} non corrispondente: il parametro di base è di tipo \"{baseType}\", il parametro di override è di tipo \"{overrideType}\"",
722
725
  "overridePositionalParamCount": "Numero di parametri posizionali non corrispondente. Il metodo di base ne ha {baseCount}, ma l'override ne ha {overrideCount}",
723
726
  "overrideReturnType": "Tipo restituito non corrispondente: il metodo di base restituisce il tipo \"{baseType}\", l'override restituisce il tipo \"{overrideType}\"",
@@ -784,6 +787,7 @@
784
787
  "typedDictFieldTypeMismatch": "Il tipo \"{type}\" non può essere assegnato all’elemento \"{name}\"",
785
788
  "typedDictFieldUndefined": "\"{name}\" è un elemento non definito nel tipo \"{type}\"",
786
789
  "typedDictFinalMismatch": "\"{sourceType}\" non è compatibile con \"{destType}\" a causa di una @final mancata corrispondenza",
790
+ "typedDictKeyAccess": "Usare [\"{name}\"] per fare riferimento all'elemento in TypedDict",
787
791
  "typedDictNotAllowed": "Non è possibile usare TypedDict per i controlli di istanze o classi",
788
792
  "unhashableType": "Il tipo \"{type}\" non è hashable",
789
793
  "uninitializedAbstractVariable": "La variabile di istanza \"{name}\" è definita nella classe di base astratta \"{classType}\" ma non è inizializzata",
@@ -17,8 +17,10 @@
17
17
  "abstractMethodInvocation": "メソッド \"{method}\" は抽象メソッドであり、実装されていないため、呼び出すことができません",
18
18
  "annotatedParamCountMismatch": "パラメーター注釈数の不一致: {expected} が必要ですが、{received} を受信しました",
19
19
  "annotatedTypeArgMissing": "\"Annotationed\" には 1 つの型引数と 1 つ以上の注釈が必要です",
20
+ "annotationBytesString": "Type annotations cannot use bytes string literals",
20
21
  "annotationFormatString": "型注釈では、書式指定文字列リテラル (f 文字列) を使用できません",
21
22
  "annotationNotSupported": "このステートメントでは型注釈はサポートされていません",
23
+ "annotationRawString": "Type annotations cannot use raw string literals",
22
24
  "annotationSpansStrings": "型注釈を複数の文字列リテラルにまたがることはできません",
23
25
  "annotationStringEscape": "型注釈にエスケープ文字を含めることはできません",
24
26
  "argAssignment": "型 \"{argType}\" の引数を型 \"{paramType}\" のパラメーターに割り当てることはできません",
@@ -275,6 +277,7 @@
275
277
  "listAssignmentMismatch": "型 \"{type}\" の式をターゲット リストに割り当てることはできません",
276
278
  "listInAnnotation": "型注釈ではリスト式は使用できません",
277
279
  "literalEmptyArgs": "\"Literal\" の後に 1 つ以上の型引数が必要です",
280
+ "literalNamedUnicodeEscape": "Named unicode escape sequences are not supported in \"Literal\" string annotations",
278
281
  "literalNotAllowed": "\"Literal\" は、型引数なしでこのコンテキストでは使用できません",
279
282
  "literalNotCallable": "リテラル型をインスタンス化できません",
280
283
  "literalUnsupportedType": "\"Literal\" の型引数は None、リテラル値 (int、bool、str、または bytes)、または列挙型の値である必要があります",
@@ -784,6 +787,7 @@
784
787
  "typedDictFieldTypeMismatch": "型 \"{type}\" は、アイテム \"{name}\" に割り当てできません",
785
788
  "typedDictFieldUndefined": "\"{name}\" は型 \"{type}\" の未定義のアイテムです",
786
789
  "typedDictFinalMismatch": "@final が一致しないため、\"{sourceType}\" は \"{destType}\" と互換性がありません",
790
+ "typedDictKeyAccess": "[\"{name}\"] を使用して TypedDict の項目を参照する",
787
791
  "typedDictNotAllowed": "TypedDict はインスタンスまたはクラスのチェックには使用できません",
788
792
  "unhashableType": "型 \"{type}\" はハッシュ可能ではありません",
789
793
  "uninitializedAbstractVariable": "インスタンス変数 \"{name}\" は抽象基本クラス \"{classType}\" で定義されていますが、初期化されていません",
@@ -17,8 +17,10 @@
17
17
  "abstractMethodInvocation": "메서드 \"{method}\"은(는) 추상적이고 구현되지 않았으므로 호출할 수 없습니다.",
18
18
  "annotatedParamCountMismatch": "매개 변수 주석 개수가 일치하지 않습니다. {expected}이)(가) 필요하지만 {received}을(를) 받았습니다.",
19
19
  "annotatedTypeArgMissing": "\"Annotated\"에 대해 하나의 형식 인수와 하나 이상의 주석이 필요합니다.",
20
+ "annotationBytesString": "Type annotations cannot use bytes string literals",
20
21
  "annotationFormatString": "형식 주석은 형식 문자열 리터럴(f-문자열)을 사용할 수 없습니다.",
21
22
  "annotationNotSupported": "이 문에는 형식 주석이 지원되지 않습니다.",
23
+ "annotationRawString": "Type annotations cannot use raw string literals",
22
24
  "annotationSpansStrings": "형식 주석은 여러 문자열 리터럴에 걸쳐 있을 수 없습니다.",
23
25
  "annotationStringEscape": "형식 주석에는 이스케이프 문자를 사용할 수 없습니다.",
24
26
  "argAssignment": "\"{argType}\" 형식의 인수를 \"{paramType}\" 형식의 매개 변수에 할당할 수 없습니다.",
@@ -275,6 +277,7 @@
275
277
  "listAssignmentMismatch": "형식이 \"{type}\"인 식을 대상 목록에 할당할 수 없습니다.",
276
278
  "listInAnnotation": "형식 주석에는 목록 식을 사용할 수 없습니다.",
277
279
  "literalEmptyArgs": "‘Literal’ 뒤에 하나 이상의 형식 인수가 필요합니다.",
280
+ "literalNamedUnicodeEscape": "Named unicode escape sequences are not supported in \"Literal\" string annotations",
278
281
  "literalNotAllowed": "형식 인수가 없으면 이 컨텍스트에서 \"Literal\"을 사용할 수 없습니다.",
279
282
  "literalNotCallable": "리터럴 형식은 인스턴스화할 수 없습니다.",
280
283
  "literalUnsupportedType": "\"Literal\"의 형식 인수는 None, 리터럴 값(int, bool, str 또는 bytes) 또는 열거형 값이어야 합니다.",
@@ -496,8 +499,8 @@
496
499
  "typeNotSpecializable": "‘{type}’ 형식을 특수화할 수 없습니다.",
497
500
  "typeNotSubscriptable": "\"{type}\" 형식의 개체를 첨자할 수 없습니다.",
498
501
  "typeNotSupportBinaryOperator": "‘{operator}’ 연산자는 ‘{leftType}’ 및 ‘{rightType}’ 형식에 대해 지원되지 않습니다.",
499
- "typeNotSupportBinaryOperatorBidirectional": "예상 형식이 ‘{expectedType}’인 경우 ‘{type}’ 형식에 대해 ‘{operator}’ 연산자가 지원되지 않습니다.",
500
- "typeNotSupportUnaryOperator": "‘None‘에 대해 ’{operator}‘ 연산자가 지원되지 않습니다.",
502
+ "typeNotSupportBinaryOperatorBidirectional": "예상 형식이 ‘{expectedType}’인 경우 ‘{leftType}’ 및 ‘{rightType}’ 형식에 대해 ‘{operator}’ 연산자가 지원되지 않습니다.",
503
+ "typeNotSupportUnaryOperator": "‘{type}’‘에 대해 ’{operator}‘ 연산자가 지원되지 않습니다.",
501
504
  "typeNotSupportUnaryOperatorBidirectional": "예상 형식이 \"{expectedType}\" 경우 형식 \"{type}\"에 대해 연산자 \"{operator}\"이(가) 지원되지 않습니다.",
502
505
  "typeNotUsableWith": "\"{type}\" 형식의 개체는 {method}을(를) 구현하지 않으므로 \"with\"와 함께 사용할 수 없습니다.",
503
506
  "typeParameterBoundNotAllowed": "바운드 또는 제약 조건은 가변 인자 형식 매개 변수 또는 ParamSpec와 함께 사용할 수 없습니다.",
@@ -718,7 +721,7 @@
718
721
  "overrideParamNameMissing": "재정의에 ‘{name}’ 매개 변수가 없습니다.",
719
722
  "overrideParamNamePositionOnly": "매개 변수 {index} 불일치: 기본 매개 변수 \"{baseName}\"은(는) 키워드 매개 변수이며 재정의 매개 변수는 위치 전용임",
720
723
  "overrideParamNoDefault": "{index} 매개 변수가 불일치합니다. 기본 매개 변수에 기본 인수 값이 있습니다. 재정의 매개 변수에는 없습니다.",
721
- "overrideParamType": "‘{name}’ 매개 변수 형식이 일치하지 않습니다. 기본 매개 변수는 형식이 ‘{baseType}’, 재정의 매개 변수는 형식이 ‘{overrideType}’입니다.",
724
+ "overrideParamType": "‘{index}’ 매개 변수 형식이 일치하지 않습니다. 기본 매개 변수는 형식이 ‘{baseType}’, 재정의 매개 변수는 형식이 ‘{overrideType}’입니다.",
722
725
  "overridePositionalParamCount": "위치 매개 변수 개수가 일치하지 않습니다. 기본 메서드에 {baseCount}개가 있지만 재정의에는 {overrideCount}개가 있습니다.",
723
726
  "overrideReturnType": "반환 형식 불일치: 기본 메서드는 \"{baseType}\" 형식을 반환하고 재정의는 \"{overrideType}\" 형식을 반환합니다.",
724
727
  "overrideType": "기본 클래스는 형식을 \"{type}\"으로 정의합니다.",
@@ -784,6 +787,7 @@
784
787
  "typedDictFieldTypeMismatch": "\"{type}\" 형식은 \"{name}\" 항목에 할당할 수 없습니다.",
785
788
  "typedDictFieldUndefined": "\"{name}\"은(는) \"{type}\" 형식의 정의되지 않은 항목입니다.",
786
789
  "typedDictFinalMismatch": "@final 불일치로 인해 \"{sourceType}\"이(가) \"{destType}\"과(와) 호환되지 않습니다.",
790
+ "typedDictKeyAccess": "TypedDict에서 항목을 참조하려면 [\"{name}\"]을(를) 사용하세요.",
787
791
  "typedDictNotAllowed": "TypedDict는 인스턴스 또는 클래스 검사에 사용할 수 없습니다.",
788
792
  "unhashableType": "‘{type}’ 형식을 해시할 수 없습니다.",
789
793
  "uninitializedAbstractVariable": "인스턴스 변수 \"{name}\"이(가) 추상 기본 클래스 \"{classType}\"에 정의되어 있지만 초기화되지 않았습니다.",
@@ -17,8 +17,10 @@
17
17
  "abstractMethodInvocation": "Nie można wywołać metody „{method}”, ponieważ jest abstrakcyjna i niezaimplementowana",
18
18
  "annotatedParamCountMismatch": "Niezgodność liczby adnotacji parametru; oczekiwano {expected}, a uzyskano {received}",
19
19
  "annotatedTypeArgMissing": "Oczekiwano jednego argumentu typu i co najmniej jednej adnotacji dla wartości „Annotated”",
20
+ "annotationBytesString": "Type annotations cannot use bytes string literals",
20
21
  "annotationFormatString": "Adnotacje typu nie mogą używać literałów ciągów formatu (f-strings)",
21
22
  "annotationNotSupported": "Adnotacja typu nie jest obsługiwana dla tej instrukcji",
23
+ "annotationRawString": "Type annotations cannot use raw string literals",
22
24
  "annotationSpansStrings": "Adnotacje typu nie mogą obejmować wielu literałów ciągów",
23
25
  "annotationStringEscape": "Adnotacje typu nie mogą zawierać znaków ucieczki",
24
26
  "argAssignment": "Argumentu typu „{argType}” nie można przypisać do parametru typu „{paramType}”",
@@ -257,9 +259,9 @@
257
259
  "instanceVarOverridesClassVar": "Zmienna wystąpienia „{name}” zastępuje zmienną klasy o tej samej nazwie w klasie „{className}”",
258
260
  "instantiateAbstract": "Nie można utworzyć wystąpienia klasy abstrakcyjnej „{type}”",
259
261
  "instantiateProtocol": "Nie można utworzyć wystąpienia klasy protokołu typu „{type}”",
260
- "internalBindError": "Wystąpił błąd wewnętrzny podczas wiązania pliku „{plik}”: {message}",
261
- "internalParseError": "Wystąpił błąd wewnętrzny podczas analizowania pliku „{plik}”: {message}",
262
- "internalTypeCheckingError": "Wystąpił błąd wewnętrzny podczas sprawdzania typu pliku „{plik}”: {message}",
262
+ "internalBindError": "Wystąpił błąd wewnętrzny podczas wiązania pliku „{file}”: {message}",
263
+ "internalParseError": "Wystąpił błąd wewnętrzny podczas analizowania pliku „{file}”: {message}",
264
+ "internalTypeCheckingError": "Wystąpił błąd wewnętrzny podczas sprawdzania typu pliku „{file}”: {message}",
263
265
  "invalidIdentifierChar": "Nieprawidłowy znak w identyfikatorze",
264
266
  "invalidStubStatement": "Instrukcja nie ma znaczenia w pliku zastępczym typu",
265
267
  "invalidTokenChars": "Nieprawidłowy znak „{text}” w tokenie",
@@ -275,6 +277,7 @@
275
277
  "listAssignmentMismatch": "Wyrażenia typu „{type}” nie można przypisać do listy docelowej",
276
278
  "listInAnnotation": "Wyrażenie listy jest niedozwolone w adnotacji typu",
277
279
  "literalEmptyArgs": "Oczekiwano co najmniej jednego argumentu typu po wartości „Literal”",
280
+ "literalNamedUnicodeEscape": "Named unicode escape sequences are not supported in \"Literal\" string annotations",
278
281
  "literalNotAllowed": "„Literał” nie może być używany w tym kontekście bez argumentu typu",
279
282
  "literalNotCallable": "Nie można utworzyć wystąpienia typu literału",
280
283
  "literalUnsupportedType": "Argumenty typu dla elementu „Literal” muszą mieć wartość Brak, wartość literału (int, bool, str lub bytes) lub wartość wyliczenia",
@@ -784,6 +787,7 @@
784
787
  "typedDictFieldTypeMismatch": "Nie można przypisać typu „{type}” do elementu „{name}”",
785
788
  "typedDictFieldUndefined": "Nazwa „{name}” jest niezdefiniowanym elementem w typie „{type}”",
786
789
  "typedDictFinalMismatch": "Typ „{sourceType}” jest niezgodny z typem „{destType}” z powodu niezgodności @final",
790
+ "typedDictKeyAccess": "Użyj elementu [\"{name}\"], aby odwołać się do elementu w TypedDict",
787
791
  "typedDictNotAllowed": "Funkcja TypedDict nie może być używana do sprawdzania wystąpień lub klas",
788
792
  "unhashableType": "Typ „{type}” nie jest wartością skrótu",
789
793
  "uninitializedAbstractVariable": "zmienna wystąpienia „{name}” jest zdefiniowana w abstrakcyjnej klasie bazowej „{classType}” ale nie została zainicjowana",
@@ -17,8 +17,10 @@
17
17
  "abstractMethodInvocation": "O método \"{method}\" não pode ser chamado porque é abstrato e não está implementado",
18
18
  "annotatedParamCountMismatch": "Incompatibilidade de contagem de anotações de parâmetro: esperado {expected}, mas recebido {received}",
19
19
  "annotatedTypeArgMissing": "Esperava-se um argumento de tipo e uma ou mais anotações para \"Annotated\"",
20
+ "annotationBytesString": "Type annotations cannot use bytes string literals",
20
21
  "annotationFormatString": "As anotações de tipo não podem usar literais de cadeia de caracteres de formato (cadeias de caracteres f)",
21
22
  "annotationNotSupported": "Anotação de tipo sem suporte para esta instrução",
23
+ "annotationRawString": "Type annotations cannot use raw string literals",
22
24
  "annotationSpansStrings": "Anotações de tipo não podem abranger vários literais de cadeia de caracteres",
23
25
  "annotationStringEscape": "Anotações de tipo não podem conter caracteres de escape",
24
26
  "argAssignment": "O argumento do tipo \"{argType}\" não pode ser atribuído ao parâmetro do tipo \"{paramType}\"",
@@ -275,6 +277,7 @@
275
277
  "listAssignmentMismatch": "A expressão com o tipo \"{type}\" não pode ser atribuída à lista de destino",
276
278
  "listInAnnotation": "Expressão de lista não permitida na anotação de tipo",
277
279
  "literalEmptyArgs": "Um ou mais argumentos de tipo esperados após \"Literal\"",
280
+ "literalNamedUnicodeEscape": "Named unicode escape sequences are not supported in \"Literal\" string annotations",
278
281
  "literalNotAllowed": "\"Literal\" não pode ser usado nesse contexto sem um argumento de tipo",
279
282
  "literalNotCallable": "O tipo literal não pode ser instanciado",
280
283
  "literalUnsupportedType": "Os argumentos de tipo para \"Literal\" devem ser None, um valor literal (int, bool, str ou bytes) ou um valor de enumeração",
@@ -784,6 +787,7 @@
784
787
  "typedDictFieldTypeMismatch": "O tipo \"{type}\" não é atribuível ao item \"{name}\"",
785
788
  "typedDictFieldUndefined": "\"{name}\" é um item indefinido no tipo \"{type}\"",
786
789
  "typedDictFinalMismatch": "\"{sourceType}\" é incompatível com \"{destType}\" devido a uma @final incompatível",
790
+ "typedDictKeyAccess": "Usar [\"{name}\"] para fazer referência ao item em TypedDict",
787
791
  "typedDictNotAllowed": "TypedDict não pode ser usado para verificações de instância ou de classe",
788
792
  "unhashableType": "O tipo \"{type}\" não é pode fazer hash",
789
793
  "uninitializedAbstractVariable": "A variável de instância \"{name}\" está definida na classe base abstrata \"{classType}\", mas não foi inicializada",
@@ -17,8 +17,10 @@
17
17
  "abstractMethodInvocation": "[fE8MD][นั้Mëthøð \"{mëthøð}\" çæññøt þë çællëð þëçæµsë ït ïs æþstræçt æñð µñïmplëmëñtëðẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğนั้ढूँ]",
18
18
  "annotatedParamCountMismatch": "[VZvZc][นั้Pæræmëtër æññøtætïøñ çøµñt mïsmætçh: ëxpëçtëð {ëxpëçtëð} þµt rëçëïvëð {rëçëïvëð}Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İนั้ढूँ]",
19
19
  "annotatedTypeArgMissing": "[mTgtG][นั้Ëxpëçtëð øñë tÿpë ærgµmëñt æñð øñë ør mørë æññøtætïøñs før \"Æññøtætëð\"Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまนั้ढूँ]",
20
+ "annotationBytesString": "[W1g86][นั้Tÿpë æññøtætïøñs çæññøt µsë þÿtës strïñg lïtërælsẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰนั้ढूँ]",
20
21
  "annotationFormatString": "[zaI8H][นั้Tÿpë æññøtætïøñs çæññøt µsë førmæt strïñg lïtëræls (f-strïñgs)Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृนั้ढूँ]",
21
22
  "annotationNotSupported": "[xYlM8][นั้Tÿpë æññøtætïøñ ñøt sµppørtëð før thïs stætëmëñtẤğ倪İЂҰक्र्तिृまẤğ倪İЂนั้ढूँ]",
23
+ "annotationRawString": "[WOMum][นั้Tÿpë æññøtætïøñs çæññøt µsë ræw strïñg lïtërælsẤğ倪İЂҰक्र्तिृまẤğ倪İЂนั้ढूँ]",
22
24
  "annotationSpansStrings": "[6Gg9x][นั้Tÿpë æññøtætïøñs çæññøt spæñ mµltïplë strïñg lïtërælsẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्นั้ढूँ]",
23
25
  "annotationStringEscape": "[MQdsm][นั้Tÿpë æññøtætïøñs çæññøt çøñtæïñ ësçæpë çhæræçtërsẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰนั้ढूँ]",
24
26
  "argAssignment": "[7pdVt][นั้Ærgµmëñt øf tÿpë \"{ærgTÿpë}\" çæññøt þë æssïgñëð tø pæræmëtër øf tÿpë \"{pæræmTÿpë}\"Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İЂนั้ढूँ]",
@@ -275,6 +277,7 @@
275
277
  "listAssignmentMismatch": "[DZh64][นั้Ëxprëssïøñ wïth tÿpë \"{tÿpë}\" çæññøt þë æssïgñëð tø tærgët lïstẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृนั้ढूँ]",
276
278
  "listInAnnotation": "[i5U8t][นั้£ïst ëxprëssïøñ ñøt ælløwëð ïñ tÿpë æññøtætïøñẤğ倪İЂҰक्र्तिृまẤğ倪İนั้ढूँ]",
277
279
  "literalEmptyArgs": "[VkrFm][นั้Ëxpëçtëð øñë ør mørë tÿpë ærgµmëñts æftër \"£ïtëræl\"Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰนั้ढूँ]",
280
+ "literalNamedUnicodeEscape": "[8cbe7][นั้Ñæmëð µñïçøðë ësçæpë sëqµëñçës ærë ñøt sµppørtëð ïñ \"£ïtëræl\" strïñg æññøtætïøñsẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İนั้ढूँ]",
278
281
  "literalNotAllowed": "[FAk6E][นั้\"£ïtëræl\" çæññøt þë µsëð ïñ thïs çøñtëxt wïthøµt æ tÿpë ærgµmëñtẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृนั้ढूँ]",
279
282
  "literalNotCallable": "[C75sx][นั้£ïtëræl tÿpë çæññøt þë ïñstæñtïætëðẤğ倪İЂҰक्र्तिृまนั้ढूँ]",
280
283
  "literalUnsupportedType": "[10Yse][นั้Tÿpë ærgµmëñts før \"£ïtëræl\" mµst þë Ñøñë, æ lïtëræl vælµë (ïñt, þøøl, str, ør þÿtës), ør æñ ëñµm vælµëẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृนั้ढूँ]",
@@ -784,6 +787,7 @@
784
787
  "typedDictFieldTypeMismatch": "[XYIBH][นั้Tÿpë \"{tÿpë}\" ïs ñøt æssïgñæþlë tø ïtëm \"{ñæmë}\"Ấğ倪İЂҰक्र्तिृまẤğ倪İЂนั้ढूँ]",
785
788
  "typedDictFieldUndefined": "[UsDC9][นั้\"{ñæmë}\" ïs æñ µñðëfïñëð ïtëm ïñ tÿpë \"{tÿpë}\"Ấğ倪İЂҰक्र्तिृまẤğ倪İนั้ढूँ]",
786
789
  "typedDictFinalMismatch": "[tFb04][นั้\"{søµrçëTÿpë}\" ïs ïñçømpætïþlë wïth \"{ðëstTÿpë}\" þëçæµsë øf æ @fïñæl mïsmætçhẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪นั้ढूँ]",
790
+ "typedDictKeyAccess": "[67DLq][นั้Üsë [\"{ñæmë}\"] tø rëfërëñçë ïtëm ïñ TÿpëðÐïçtẤğ倪İЂҰक्र्तिृまẤğ倪İนั้ढूँ]",
787
791
  "typedDictNotAllowed": "[eTsPP][นั้TÿpëðÐïçt çæññøt þë µsëð før ïñstæñçë ør çlæss çhëçksẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्นั้ढूँ]",
788
792
  "unhashableType": "[IJEeq][นั้Tÿpë \"{tÿpë}\" ïs ñøt hæshæþlëẤğ倪İЂҰक्र्तिृนั้ढूँ]",
789
793
  "uninitializedAbstractVariable": "[uDuHt][นั้Ïñstæñçë værïæþlë \"{ñæmë}\" ïs ðëfïñëð ïñ æþstræçt þæsë çlæss \"{çlæssTÿpë}\" þµt ñøt ïñïtïælïzëðẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्นั้ढूँ]",
@@ -17,8 +17,10 @@
17
17
  "abstractMethodInvocation": "Невозможно вызвать метод \"{method}\", так как он является абстрактным и нереализованным",
18
18
  "annotatedParamCountMismatch": "Несоответствие числа аннотаций параметра: ожидается {expected}, но получено {received}",
19
19
  "annotatedTypeArgMissing": "Для \"Annotated\" ожидается один аргумент типа и одна или несколько заметок типа",
20
+ "annotationBytesString": "Type annotations cannot use bytes string literals",
20
21
  "annotationFormatString": "В заметках типа не могут использоваться строковые литералы формата (f-строки)",
21
22
  "annotationNotSupported": "Заметка типа не поддерживается для этой инструкции",
23
+ "annotationRawString": "Type annotations cannot use raw string literals",
22
24
  "annotationSpansStrings": "Заметки с типом не могут охватывать несколько строковых литералов",
23
25
  "annotationStringEscape": "Заметки с типом не могут содержать escape-символы",
24
26
  "argAssignment": "Аргумент типа \"{argType}\" нельзя присвоить параметру типа \"{paramType}\"",
@@ -275,6 +277,7 @@
275
277
  "listAssignmentMismatch": "Выражение с типом \"{type}\" нельзя присвоить целевому списку",
276
278
  "listInAnnotation": "Списочное выражение не разрешено в заметке типа",
277
279
  "literalEmptyArgs": "Ожидается один или несколько аргументов типа после \"Literal\"",
280
+ "literalNamedUnicodeEscape": "Named unicode escape sequences are not supported in \"Literal\" string annotations",
278
281
  "literalNotAllowed": "Невозможно использовать \"Literal\" в этом контексте без аргумента типа",
279
282
  "literalNotCallable": "Не удается создать экземпляр типа литерала",
280
283
  "literalUnsupportedType": "Аргументы типа для \"Literal\" должны иметь значение None, литеральное значение (int, bool, str или bytes) или значение перечислимого типа",
@@ -690,7 +693,7 @@
690
693
  "missingSetter": "Отсутствует метод установки свойств",
691
694
  "namedParamMissingInDest": "В целевом объекте отсутствует параметр ключевого слова \"{name}\"",
692
695
  "namedParamMissingInSource": "В источнике нет параметра ключевого слова \"{name}\"",
693
- "namedParamTypeMismatch": "Параметр ключевого слова {index} типа \"{sourceType}\" нельзя присвоить типу \"{destType}\"",
696
+ "namedParamTypeMismatch": "Параметр ключевого слова {name} типа \"{sourceType}\" нельзя присвоить типу \"{destType}\"",
694
697
  "namedTupleNotAllowed": "NamedTuple не может использоваться для проверок экземпляров или классов",
695
698
  "newMethodLocation": "Метод __new__ определен в классе \"{type}\"",
696
699
  "newMethodSignature": "Сигнатура метода __new__ требует \"{type}\"",
@@ -784,6 +787,7 @@
784
787
  "typedDictFieldTypeMismatch": "Тип \"{type}\" нельзя присвоить полю \"{name}\"",
785
788
  "typedDictFieldUndefined": "Элемент \"{name}\" не определен в типе \"{type}\"",
786
789
  "typedDictFinalMismatch": "\"{sourceType}\" несовместим с \"{destType}\" из-за несоответствия окончательности",
790
+ "typedDictKeyAccess": "Использовать [\"{name}\"] для ссылки на элемент в TypedDict",
787
791
  "typedDictNotAllowed": "TypedDict не может использоваться для проверок экземпляров или классов",
788
792
  "unhashableType": "Тип \"{type}\" не является хэшируемым",
789
793
  "uninitializedAbstractVariable": "Переменная экземпляра \"{name}\" определена в абстрактном базовом классе \"{classType}\", но не инициализирована",
@@ -17,12 +17,14 @@
17
17
  "abstractMethodInvocation": "\"{method}\" metodu soyut veya uygulanmamış olduğundan çağrılamaz",
18
18
  "annotatedParamCountMismatch": "Parametre ek açıklama sayısı uyuşmazlığı: {expected} bekleniyordu ancak {received} alındı",
19
19
  "annotatedTypeArgMissing": "\"Annotated\" için bir tür bağımsız değişkeni ve bir veya daha fazla ek açıklama bekleniyordu",
20
+ "annotationBytesString": "Type annotations cannot use bytes string literals",
20
21
  "annotationFormatString": "Tür ek açıklamaları biçim dizesi sabit değerlerini (f-strings) kullanamaz",
21
22
  "annotationNotSupported": "Tür ek açıklaması bu deyim için desteklenmiyor",
23
+ "annotationRawString": "Type annotations cannot use raw string literals",
22
24
  "annotationSpansStrings": "Tür ek açıklamaları birden çok dize sabit değerine yayılamaz",
23
25
  "annotationStringEscape": "Tür ek açıklamaları kaçış karakterleri içeremez",
24
- "argAssignment": "\"{argType}\" türünde bağımsız değişken, \"{paramName}\" türündeki parametreye atanamaz",
25
- "argAssignmentFunction": "\"{argType}\" türünde bağımsız değişken, \"{functionName}\" işlevi içinde \"{paramName}\" türündeki parametreye atanamaz",
26
+ "argAssignment": "\"{argType}\" türünde bağımsız değişken, \"{paramType}\" türündeki parametreye atanamaz",
27
+ "argAssignmentFunction": "\"{argType}\" türünde bağımsız değişken, \"{functionName}\" işlevi içinde \"{paramType}\" türündeki parametreye atanamaz",
26
28
  "argAssignmentParam": "\"{argType}\" türünde bağımsız değişken, \"{paramName}\" türündeki \"{paramType}\" parametresine atanamaz",
27
29
  "argAssignmentParamFunction": "\"{argType}\" türünde bağımsız değişken, \"{functionName}\" işlevi içinde \"{paramName}\" türündeki \"{paramType}\" parametresine atanamaz",
28
30
  "argMissingForParam": "{name} parametresi için bağımsız değişken eksik",
@@ -275,6 +277,7 @@
275
277
  "listAssignmentMismatch": "\"{type}\" türündeki ifade hedef listesine atanamaz",
276
278
  "listInAnnotation": "Tür ek açıklamasında liste ifadesi kullanılamaz",
277
279
  "literalEmptyArgs": "\"Literal\" sonrasında bir veya daha fazla tür bağımsız değişkeni bekleniyordu",
280
+ "literalNamedUnicodeEscape": "Named unicode escape sequences are not supported in \"Literal\" string annotations",
278
281
  "literalNotAllowed": "\"Değişmez değer\" bir tür bağımsız değişken olmadan bu bağlamda kullanılamaz",
279
282
  "literalNotCallable": "Değişmez tür örneği oluşturulamıyor",
280
283
  "literalUnsupportedType": "\"Literal\" için tür bağımsız değişkenleri None, bir sabit değer (int, bool, str veya bytes) veya bir sabit listesi değeri olmalıdır",
@@ -784,6 +787,7 @@
784
787
  "typedDictFieldTypeMismatch": "\"{type}\" türü \"{name}\" öğesine atanamaz",
785
788
  "typedDictFieldUndefined": "\"{name}\", \"{type}\" türündeki tanımsız bir öğedir",
786
789
  "typedDictFinalMismatch": "\"{sourceType}\" @final uyumsuzluğu nedeniyle \"{destType}\" ile uyumsuz",
790
+ "typedDictKeyAccess": "TypedDict’te öğeye başvurmak için [\"{name}\"] değerini kullanın",
787
791
  "typedDictNotAllowed": "TypedDict örnek veya sınıf kontrolleri için kullanılamaz",
788
792
  "unhashableType": "\"{type}\" türü karmalanabilir değil",
789
793
  "uninitializedAbstractVariable": "\"{name}\" örnek değişkeni, \"{classType}\" soyut temel sınıfında tanımlandı ancak başlatılmadı",
@@ -17,8 +17,10 @@
17
17
  "abstractMethodInvocation": "无法调用方法“{method}”,因为它是抽象的且未实施",
18
18
  "annotatedParamCountMismatch": "参数批注计数不匹配: 应为 {expected},但收到 {received}",
19
19
  "annotatedTypeArgMissing": "“Annotated”应为一个类型参数和一个或多个批注",
20
+ "annotationBytesString": "Type annotations cannot use bytes string literals",
20
21
  "annotationFormatString": "类型批注不能使用格式字符串文本 (f 字符串)",
21
22
  "annotationNotSupported": "此语句不支持类型批注",
23
+ "annotationRawString": "Type annotations cannot use raw string literals",
22
24
  "annotationSpansStrings": "类型批注不能跨越多个字符串文本",
23
25
  "annotationStringEscape": "类型批注不能包含转义字符",
24
26
  "argAssignment": "无法将“{argType}”类型的参数分配给“{paramType}”类型的参数",
@@ -275,6 +277,7 @@
275
277
  "listAssignmentMismatch": "无法将 \"{type}\" 类型的表达式分配给目标列表",
276
278
  "listInAnnotation": "类型批注中不允许使用列表表达式",
277
279
  "literalEmptyArgs": "“Literal”后应有一个或多个类型参数",
280
+ "literalNamedUnicodeEscape": "Named unicode escape sequences are not supported in \"Literal\" string annotations",
278
281
  "literalNotAllowed": "如果没有类型参数,则 \"Literal\" 不能用于此上下文",
279
282
  "literalNotCallable": "无法实例化文本类型",
280
283
  "literalUnsupportedType": "“Literal” 的类型参数必须是 None、int、bool、str 或 bytes)(文本值,或者是枚举值",
@@ -496,7 +499,7 @@
496
499
  "typeNotSpecializable": "无法专用化类型“{type}”",
497
500
  "typeNotSubscriptable": "类型为“{type}”的对象不可下标",
498
501
  "typeNotSupportBinaryOperator": "类型“{leftType}”和“{rightType}”不支持运算符“{operator}”",
499
- "typeNotSupportBinaryOperatorBidirectional": "预期类型为 \"{expectedType}\"时,类型\"{type}\"不支持运算符\"{operator}\"",
502
+ "typeNotSupportBinaryOperatorBidirectional": "预期类型为“{expectedType}”时,类型“{leftType}”和“{rightType}”不支持运算符“{operator}",
500
503
  "typeNotSupportUnaryOperator": "类型“{type}”不支持运算符“{operator}”",
501
504
  "typeNotSupportUnaryOperatorBidirectional": "预期类型为 \"{expectedType}\"时,类型\"{type}\"不支持运算符\"{operator}\"",
502
505
  "typeNotUsableWith": "\"{type}\"类型的对象不能与 “with” 一起使用,因为它未实现{method}",
@@ -784,6 +787,7 @@
784
787
  "typedDictFieldTypeMismatch": "类型“{type}”不可分配给项“{name}”",
785
788
  "typedDictFieldUndefined": "“{name}”是类型“{type}”中的未定义项",
786
789
  "typedDictFinalMismatch": "\"{sourceType}\"与\"{destType}\"不兼容,因为@final不匹配",
790
+ "typedDictKeyAccess": "使用 [\"{name}\"] 引用 TypedDict 中的项",
787
791
  "typedDictNotAllowed": "不能对实例或类检查使用 TypedDict",
788
792
  "unhashableType": "类型“{type}”不可哈希",
789
793
  "uninitializedAbstractVariable": "实例变量“{name}”在抽象基类“{classType}”中定义,但未初始化",
@@ -17,8 +17,10 @@
17
17
  "abstractMethodInvocation": "無法呼叫方法 \"{method}\",因為它是抽象且未執行",
18
18
  "annotatedParamCountMismatch": "參數註釋計數不符: 應為 {expected},但收到 {received}",
19
19
  "annotatedTypeArgMissing": "預期 \"Annotated\" 有一個類型引數和一或多個註釋",
20
+ "annotationBytesString": "Type annotations cannot use bytes string literals",
20
21
  "annotationFormatString": "類型註釋不能使用格式字串常值 (f-strings)",
21
22
  "annotationNotSupported": "此陳述式不支援類型註釋",
23
+ "annotationRawString": "Type annotations cannot use raw string literals",
22
24
  "annotationSpansStrings": "型別註釋無法跨越多個字串常值",
23
25
  "annotationStringEscape": "型別註釋不可包含逸出字元",
24
26
  "argAssignment": "類型 \"{argType}\" 的引數不能指派至類型 \"{paramType}\" 的參數",
@@ -275,6 +277,7 @@
275
277
  "listAssignmentMismatch": "類型 \"{type}\" 的運算式不能指派至目標清單",
276
278
  "listInAnnotation": "類型註釋中不允許清單運算式",
277
279
  "literalEmptyArgs": "\"Literal\" 後面應有一或多個型別引數",
280
+ "literalNamedUnicodeEscape": "Named unicode escape sequences are not supported in \"Literal\" string annotations",
278
281
  "literalNotAllowed": "沒有類型參數,\"Literal\" 不能在此內容中使用",
279
282
  "literalNotCallable": "常值類型不能具現化",
280
283
  "literalUnsupportedType": "\"Literal\" 的類型引數必須是 None、常值 (int、bool、str 或 bytes) 或列舉值",
@@ -784,6 +787,7 @@
784
787
  "typedDictFieldTypeMismatch": "型別 \"{type}\" 無法指派給項目 \"{name}\"",
785
788
  "typedDictFieldUndefined": "\"{name}\" 是型別 \"{type}\" 中未定義的項目",
786
789
  "typedDictFinalMismatch": "\"{sourceType}\" 與 \"{destType}\" 不相容,因為@final 不符",
790
+ "typedDictKeyAccess": "使用 [\"{name}\"] 參考 TypedDict 中的項目",
787
791
  "typedDictNotAllowed": "執行個體或類別檢查無法使用 TypedDict",
788
792
  "unhashableType": "型別 \"{type}\" 無法雜湊",
789
793
  "uninitializedAbstractVariable": "執行個體變數 \"{name}\" 在抽象基底類別 \"{classType}\" 中定義,但未初始化",
@@ -3255,7 +3255,7 @@ class Parser {
3255
3255
  doubleStarExpression = this._parseExpression(/* allowUnpack */ false);
3256
3256
  }
3257
3257
  else {
3258
- keyExpression = this._parseTestOrStarExpression(/* allowAssignmentExpression */ true);
3258
+ keyExpression = this._parseTestOrStarExpression(/* allowAssignmentExpression */ false);
3259
3259
  if (this._consumeTokenIfType(10 /* TokenType.Colon */)) {
3260
3260
  valueExpression = this._parseTestExpression(/* allowAssignmentExpression */ false);
3261
3261
  }
@@ -3829,7 +3829,8 @@ class Parser {
3829
3829
  this._addSyntaxError(localize_1.LocMessage.annotationStringEscape(), stringNode);
3830
3830
  }
3831
3831
  }
3832
- else {
3832
+ else if ((stringToken.flags & (8 /* StringTokenFlags.Raw */ | 32 /* StringTokenFlags.Bytes */ | 64 /* StringTokenFlags.Format */)) ===
3833
+ 0) {
3833
3834
  const parser = new Parser();
3834
3835
  const parseResults = parser.parseTextExpression(this._fileContents, tokenOffset + prefixLength, unescapedString.length, this._parseOptions, 1 /* ParseTextMode.VariableAnnotation */, (stringNode.strings[0].token.flags & 4 /* StringTokenFlags.Triplicate */) !== 0 ? 1 : 0, this._typingSymbolAliases);
3835
3836
  if (parseResults.diagnostics.length === 0 ||