@zzzen/pyright-internal 1.2.0-dev.20240428 → 1.2.0-dev.20240505
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/dist/analyzer/checker.js +42 -29
- package/dist/analyzer/checker.js.map +1 -1
- package/dist/analyzer/operations.js +3 -2
- package/dist/analyzer/operations.js.map +1 -1
- package/dist/analyzer/patternMatching.js +19 -13
- package/dist/analyzer/patternMatching.js.map +1 -1
- package/dist/analyzer/scope.js +3 -1
- package/dist/analyzer/scope.js.map +1 -1
- package/dist/analyzer/typeEvaluator.js +27 -14
- package/dist/analyzer/typeEvaluator.js.map +1 -1
- package/dist/analyzer/typeUtils.js +1 -5
- package/dist/analyzer/typeUtils.js.map +1 -1
- package/dist/analyzer/types.js +3 -0
- package/dist/analyzer/types.js.map +1 -1
- package/dist/common/envVarUtils.js +1 -2
- package/dist/common/envVarUtils.js.map +1 -1
- package/dist/languageServerBase.d.ts +3 -2
- package/dist/languageServerBase.js +13 -35
- package/dist/languageServerBase.js.map +1 -1
- package/dist/languageService/callHierarchyProvider.js +1 -1
- package/dist/languageService/callHierarchyProvider.js.map +1 -1
- package/dist/languageService/dynamicFeature.d.ts +18 -0
- package/dist/languageService/dynamicFeature.js +54 -0
- package/dist/languageService/dynamicFeature.js.map +1 -0
- package/dist/languageService/fileWatcherDynamicFeature.d.ts +12 -0
- package/dist/languageService/fileWatcherDynamicFeature.js +49 -0
- package/dist/languageService/fileWatcherDynamicFeature.js.map +1 -0
- package/dist/localization/package.nls.cs.json +28 -26
- package/dist/localization/package.nls.de.json +28 -26
- package/dist/localization/package.nls.en-us.json +1 -1
- package/dist/localization/package.nls.es.json +27 -25
- package/dist/localization/package.nls.fr.json +28 -26
- package/dist/localization/package.nls.it.json +28 -26
- package/dist/localization/package.nls.ja.json +28 -26
- package/dist/localization/package.nls.ko.json +28 -26
- package/dist/localization/package.nls.pl.json +27 -25
- package/dist/localization/package.nls.pt-br.json +28 -26
- package/dist/localization/package.nls.qps-ploc.json +25 -23
- package/dist/localization/package.nls.ru.json +28 -26
- package/dist/localization/package.nls.tr.json +28 -26
- package/dist/localization/package.nls.zh-cn.json +28 -26
- package/dist/localization/package.nls.zh-tw.json +28 -26
- package/dist/parser/tokenizer.js +7 -1
- package/dist/parser/tokenizer.js.map +1 -1
- package/dist/tests/envVarUtils.test.js +20 -0
- package/dist/tests/envVarUtils.test.js.map +1 -1
- package/dist/tests/parser.test.js +7 -2
- package/dist/tests/parser.test.js.map +1 -1
- package/dist/tests/typeEvaluator1.test.js +59 -479
- package/dist/tests/typeEvaluator1.test.js.map +1 -1
- package/dist/tests/typeEvaluator2.test.js +0 -486
- package/dist/tests/typeEvaluator2.test.js.map +1 -1
- package/dist/tests/typeEvaluator3.test.js +0 -604
- package/dist/tests/typeEvaluator3.test.js.map +1 -1
- package/dist/tests/typeEvaluator4.test.js +1 -423
- package/dist/tests/typeEvaluator4.test.js.map +1 -1
- package/dist/tests/typeEvaluator6.test.d.ts +1 -0
- package/dist/tests/typeEvaluator6.test.js +712 -0
- package/dist/tests/typeEvaluator6.test.js.map +1 -0
- package/dist/tests/typeEvaluator7.test.d.ts +1 -0
- package/dist/tests/typeEvaluator7.test.js +677 -0
- package/dist/tests/typeEvaluator7.test.js.map +1 -0
- package/dist/tests/typeEvaluator8.test.d.ts +1 -0
- package/dist/tests/typeEvaluator8.test.js +660 -0
- package/dist/tests/typeEvaluator8.test.js.map +1 -0
- package/package.json +1 -1
@@ -17,10 +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": "
|
20
|
+
"annotationBytesString": "Le annotazioni di tipo non possono usare valori letterali stringa byte",
|
21
21
|
"annotationFormatString": "Le annotazioni di tipo non possono usare valori letterali stringa di formato (stringhe f)",
|
22
22
|
"annotationNotSupported": "Annotazione di tipo non supportata per questa istruzione",
|
23
|
-
"annotationRawString": "
|
23
|
+
"annotationRawString": "Le annotazioni di tipo non possono usare valori letterali stringa non elaborati",
|
24
24
|
"annotationSpansStrings": "Le annotazioni di tipo non possono estendersi su più valori letterali stringa",
|
25
25
|
"annotationStringEscape": "Le annotazioni di tipo non possono contenere caratteri di escape",
|
26
26
|
"argAssignment": "Non è possibile assegnare l'argomento di tipo \"{argType}\" al parametro di tipo \"{paramType}\"",
|
@@ -103,6 +103,7 @@
|
|
103
103
|
"dataClassBaseClassNotFrozen": "Una classe bloccata non può ereditare da una classe non bloccata",
|
104
104
|
"dataClassConverterFunction": "L'argomento di tipo \"{argType}\" non è un convertitore valido per il campo \"{fieldName}\" di tipo \"{fieldType}\"",
|
105
105
|
"dataClassConverterOverloads": "Nessun overload di \"{funcName}\" è un convertitore valido per il campo \"{fieldName}\" di tipo \"{fieldType}\"",
|
106
|
+
"dataClassFieldInheritedDefault": "\"{fieldName}\" esegue l'override di un campo con lo stesso nome, ma manca un valore predefinito",
|
106
107
|
"dataClassFieldWithDefault": "I campi senza valori predefiniti non possono essere visualizzati dopo i campi con valori predefiniti",
|
107
108
|
"dataClassFieldWithPrivateName": "Il campo dataclass non può usare un nome privato",
|
108
109
|
"dataClassFieldWithoutAnnotation": "Il campo dataclass senza annotazione del tipo causerà un'eccezione di runtime",
|
@@ -188,7 +189,7 @@
|
|
188
189
|
"expectedIn": "previsto 'in'",
|
189
190
|
"expectedInExpr": "Espressione prevista dopo \"in\"",
|
190
191
|
"expectedIndentedBlock": "Previsto un blocco rientrato",
|
191
|
-
"expectedMemberName": "
|
192
|
+
"expectedMemberName": "Nome dell'attributo previsto dopo \".\"",
|
192
193
|
"expectedModuleName": "Nome del modulo previsto",
|
193
194
|
"expectedNameAfterAs": "È previsto il nome del simbolo dopo \"as\"",
|
194
195
|
"expectedNamedParameter": "Il parametro della parola chiave deve seguire \"*\"",
|
@@ -251,6 +252,7 @@
|
|
251
252
|
"incompatibleMethodOverride": "Il metodo \"{name}\" esegue l'override della classe \"{className}\" in modo incompatibile",
|
252
253
|
"inconsistentIndent": "Il valore dell'annullamento del rientro non corrisponde al rientro precedente",
|
253
254
|
"inconsistentTabs": "Uso incoerente di tabulazioni e spazi nel rientro",
|
255
|
+
"initMethodSelfParamTypeVar": "L'annotazione di tipo per il parametro \"self\" del metodo \"__init__\" non può contenere variabili di tipo con ambito classe",
|
254
256
|
"initMustReturnNone": "Il tipo restituito di \"__init__\" deve essere None",
|
255
257
|
"initSubclassCallFailed": "Argomenti di parola chiave non corretti per il metodo __init_subclass__",
|
256
258
|
"initSubclassClsParam": "__init_subclass__ override deve accettare un parametro \"cls\"",
|
@@ -277,16 +279,16 @@
|
|
277
279
|
"listAssignmentMismatch": "Non è possibile assegnare l'espressione con tipo \"{type}\" all'elenco di destinazione",
|
278
280
|
"listInAnnotation": "Espressione elenco non consentita nell'annotazione di tipo",
|
279
281
|
"literalEmptyArgs": "Previsto uno o più argomenti tipo dopo \"Valore letterale\"",
|
280
|
-
"literalNamedUnicodeEscape": "
|
282
|
+
"literalNamedUnicodeEscape": "Le sequenze di escape Unicode denominate non sono supportate nelle annotazioni stringa \"Literal\"",
|
281
283
|
"literalNotAllowed": "Non è possibile usare \"Literal\" in questo contesto senza un argomento tipo",
|
282
284
|
"literalNotCallable": "Non è possibile creare un'istanza del tipo letterale",
|
283
285
|
"literalUnsupportedType": "Gli argomenti di tipo per \"Literal\" devono essere None, un valore letterale (int, bool, str o bytes) o un valore di enumerazione",
|
284
286
|
"matchIncompatible": "Le istruzioni match richiedono Python 3.10 o versione successiva",
|
285
287
|
"matchIsNotExhaustive": "I case all'interno dell'istruzione match non gestiscono in modo completo tutti i valori",
|
286
288
|
"maxParseDepthExceeded": "È stata superata la profondità massima di analisi; suddividere l'espressione in sottoespressioni più piccole",
|
287
|
-
"memberAccess": "Non è possibile accedere
|
288
|
-
"memberDelete": "Non è possibile eliminare
|
289
|
-
"memberSet": "Non è possibile assegnare
|
289
|
+
"memberAccess": "Non è possibile accedere all'attributo \"{name}\" per la classe \"{type}\"",
|
290
|
+
"memberDelete": "Non è possibile eliminare l'attributo \"{name}\" per la classe \"{type}\"",
|
291
|
+
"memberSet": "Non è possibile assegnare all'attributo \"{name}\" per la classe \"{type}\"",
|
290
292
|
"metaclassConflict": "La metaclasse di una classe derivata deve essere una sottoclasse delle metaclassi di tutte le relative classi di base",
|
291
293
|
"metaclassDuplicate": "È possibile specificare una sola metaclasse",
|
292
294
|
"metaclassIsGeneric": "La metaclasse non può essere generica",
|
@@ -298,7 +300,7 @@
|
|
298
300
|
"missingSuperCall": "Il metodo \"{methodName}\" non chiama il metodo con lo stesso nome nella classe padre",
|
299
301
|
"moduleAsType": "Il modulo non può essere usato come tipo",
|
300
302
|
"moduleNotCallable": "Modulo non chiamabile",
|
301
|
-
"moduleUnknownMember": "\"{memberName}\" non è un
|
303
|
+
"moduleUnknownMember": "\"{memberName}\" non è un attributo noto del modulo \"{moduleName}\"",
|
302
304
|
"namedExceptAfterCatchAll": "Una clausola except denominata non può trovarsi dopo la clausola catch-all except",
|
303
305
|
"namedParamAfterParamSpecArgs": "Il parametro della parola chiave \"{name}\" non può essere visualizzato nella firma dopo il parametro ParamSpec args",
|
304
306
|
"namedTupleEmptyName": "I nomi all'interno di una tupla denominata non possono essere vuoti",
|
@@ -332,7 +334,7 @@
|
|
332
334
|
"noneNotSubscriptable": "L'oggetto di tipo \"Nessuno\" non è sottoponibile a pedice",
|
333
335
|
"noneNotUsableWith": "Impossibile utilizzare l'oggetto di tipo \"None\" con \"with\"",
|
334
336
|
"noneOperator": "Operatore \"{operator}\" non supportato per \"None\"",
|
335
|
-
"noneUnknownMember": "\"{name}\" non è un
|
337
|
+
"noneUnknownMember": "\"{name}\" non è un attributo noto di \"None\"",
|
336
338
|
"notRequiredArgCount": "Previsto un singolo argomento tipo dopo \"NotRequired\"",
|
337
339
|
"notRequiredNotInTypedDict": "\"NotRequired\" non è consentito in questo contesto",
|
338
340
|
"objectNotCallable": "L'oggetto di tipo \"{type}\" non è chiamabile",
|
@@ -363,18 +365,18 @@
|
|
363
365
|
"paramAnnotationMissing": "Annotazione di tipo mancante per il parametro \"{name}\"",
|
364
366
|
"paramAssignmentMismatch": "Non è possibile assegnare l'espressione di tipo \"{sourceType}\" al parametro di tipo \"{paramType}\"",
|
365
367
|
"paramNameMissing": "Nessun parametro denominato \"{name}\"",
|
366
|
-
"paramSpecArgsKwargsUsage": "
|
368
|
+
"paramSpecArgsKwargsUsage": "Gli attributi \"args\" e \"kwargs\" di ParamSpec devono essere entrambi visualizzati all'interno di una firma di funzione",
|
367
369
|
"paramSpecArgsMissing": "Gli argomenti per ParamSpec \"{type}\" sono mancanti",
|
368
|
-
"paramSpecArgsUsage": "
|
370
|
+
"paramSpecArgsUsage": "L'attributo \"args\" di ParamSpec è valido solo se usato con il parametro *args",
|
369
371
|
"paramSpecAssignedName": "ParamSpec deve essere assegnato a una variabile denominata \"{name}\"",
|
370
372
|
"paramSpecContext": "ParamSpec non è consentito in questo contesto",
|
371
373
|
"paramSpecDefaultNotTuple": "Sono previsti puntini di sospensione, un'espressione di tupla o ParamSpec per il valore predefinito di ParamSpec",
|
372
374
|
"paramSpecFirstArg": "Nome previsto di ParamSpec come primo argomento",
|
373
|
-
"paramSpecKwargsUsage": "
|
375
|
+
"paramSpecKwargsUsage": "L'attributo \"kwargs\" di ParamSpec è valido solo se usato con il parametro *kwargs",
|
374
376
|
"paramSpecNotUsedByOuterScope": "ParamSpec \"{name}\" non ha significato in questo contesto",
|
375
377
|
"paramSpecScopedToReturnType": "L’ambito ParamSpec \"{name}\" è un elemento richiamabile all'interno del tipo restituito e non può essere usato come riferimento nel corpo della funzione",
|
376
378
|
"paramSpecUnknownArg": "ParamSpec non supporta più di un argomento",
|
377
|
-
"paramSpecUnknownMember": "\"{name}\" non è un
|
379
|
+
"paramSpecUnknownMember": "\"{name}\" non è un attributo noto di ParamSpec",
|
378
380
|
"paramSpecUnknownParam": "\"{name}\" è un parametro sconosciuto per ParamSpec",
|
379
381
|
"paramTypeCovariant": "Non è possibile usare la variabile di tipo covariante nel tipo di parametro",
|
380
382
|
"paramTypePartiallyUnknown": "Tipo di parametro \"{paramName}\" parzialmente sconosciuto",
|
@@ -418,7 +420,7 @@
|
|
418
420
|
"returnMissing": "La funzione con tipo restituito dichiarato \"{returnType}\" deve restituire un valore in tutti i percorsi di codice",
|
419
421
|
"returnOutsideFunction": "\"return\" può essere usata solo all'interno di una funzione.",
|
420
422
|
"returnTypeContravariant": "Non è possibile usare la variabile di tipo controvariante nel tipo restituito",
|
421
|
-
"returnTypeMismatch": "
|
423
|
+
"returnTypeMismatch": "L'espressione di tipo \"{exprType}\" non è compatibile con il tipo restituito \"{returnType}\"",
|
422
424
|
"returnTypePartiallyUnknown": "Il tipo restituito \"{returnType}\" è parzialmente sconosciuto",
|
423
425
|
"returnTypeUnknown": "Il tipo restituito è sconosciuto",
|
424
426
|
"revealLocalsArgs": "Non è previsto alcun argomento per la chiamata \"reveal_locals\"",
|
@@ -484,8 +486,8 @@
|
|
484
486
|
"typeArgsMissingForClass": "Argomenti tipo previsti per la classe generica \"{name}\"",
|
485
487
|
"typeArgsTooFew": "Troppo pochi argomenti tipo forniti per \"{name}\"; previsto {expected} ma ricevuto {received}",
|
486
488
|
"typeArgsTooMany": "Troppi argomenti tipo forniti per \"{name}\"; previsto {expected} ma ricevuto {received}",
|
487
|
-
"typeAssignmentMismatch": "
|
488
|
-
"typeAssignmentMismatchWildcard": "Il simbolo di importazione \"{name}\"
|
489
|
+
"typeAssignmentMismatch": "L'espressione di tipo \"{sourceType}\" non è compatibile con il tipo dichiarato \"{destType}\"",
|
490
|
+
"typeAssignmentMismatchWildcard": "Il tipo del simbolo di importazione \"{name}\" è \"{sourceType}\", che non è compatibile con il tipo dichiarato \"{destType}\"",
|
489
491
|
"typeCallNotAllowed": "la chiamata type() non deve essere usata nell'annotazione di tipo",
|
490
492
|
"typeCheckOnly": "\"{name}\" è contrassegnato come @type_check_only e può essere utilizzato solo nelle annotazioni tipo",
|
491
493
|
"typeCommentDeprecated": "L'uso dei commenti di tipo è deprecato. Usare l'annotazione di tipo",
|
@@ -520,7 +522,7 @@
|
|
520
522
|
"typeVarDefaultIllegal": "I tipi predefiniti delle variabili di tipo richiedono Python 3.13 o versione successiva",
|
521
523
|
"typeVarDefaultInvalidTypeVar": "Il parametro di tipo \"{name}\" ha un tipo predefinito che fa riferimento a una o più variabili di tipo non compreso nell'ambito",
|
522
524
|
"typeVarFirstArg": "Nome previsto di TypeVar come primo argomento",
|
523
|
-
"typeVarNoMember": "TypeVar \"{type}\" non ha
|
525
|
+
"typeVarNoMember": "TypeVar \"{type}\" non ha alcun attributo \"{name}\"",
|
524
526
|
"typeVarNotSubscriptable": "TypeVar \"{type}\" non sottoponibile a script",
|
525
527
|
"typeVarNotUsedByOuterScope": "La variabile di tipo \"{name}\" non ha significato in questo contesto",
|
526
528
|
"typeVarPossiblyUnsolvable": "La variabile di tipo \"{name}\" potrebbe non essere risolta se il chiamante non fornisce alcun argomento per il parametro \"{param}\"",
|
@@ -634,7 +636,7 @@
|
|
634
636
|
"argsPositionOnly": "Parametro di sola posizione non corrispondente; previsto {expected} ma ricevuto {received}",
|
635
637
|
"argumentType": "Il tipo di argomento è \"{type}\"",
|
636
638
|
"argumentTypes": "Tipi di argomento: ({types})",
|
637
|
-
"assignToNone": "
|
639
|
+
"assignToNone": "Il tipo non è compatibile con \"None\"",
|
638
640
|
"asyncHelp": "Intendevi \"async con\"?",
|
639
641
|
"baseClassIncompatible": "La classe base \"{baseClass}\" non è compatibile con il tipo \"{type}\"",
|
640
642
|
"baseClassIncompatibleSubclass": "La classe base \"{baseClass}\" deriva da \"{subclass}\", che non è compatibile con il tipo \"{type}\"",
|
@@ -670,30 +672,30 @@
|
|
670
672
|
"keyUndefined": "\"{name}\" non è una chiave definita in \"{type}\"",
|
671
673
|
"kwargsParamMissing": "Il parametro \"**{paramName}\" non ha un parametro corrispondente",
|
672
674
|
"listAssignmentMismatch": "Il tipo \"{type}\" non è compatibile con l'elenco di destinazione",
|
673
|
-
"literalAssignmentMismatch": "
|
675
|
+
"literalAssignmentMismatch": "\"{sourceType}\" non è compatibile con il tipo \"{destType}\"",
|
674
676
|
"matchIsNotExhaustiveHint": "Se la gestione completa non è prevista, aggiungere \"case _: pass\"",
|
675
677
|
"matchIsNotExhaustiveType": "Tipo non gestito: \"{type}\"",
|
676
|
-
"memberAssignment": "L'espressione di tipo \"{type}\" non può essere assegnata
|
678
|
+
"memberAssignment": "L'espressione di tipo \"{type}\" non può essere assegnata all'attributo \"{name}\" della classe \"{classType}\".",
|
677
679
|
"memberIsAbstract": "\"{type}.{name}\" non implementato",
|
678
680
|
"memberIsAbstractMore": "e {{count}} altro...",
|
679
681
|
"memberIsClassVarInProtocol": "“{name}” è definito come ClassVar nel protocollo",
|
680
682
|
"memberIsFinalInProtocol": "\"{name}\" è contrassegnato come Finale nel protocollo",
|
681
|
-
"memberIsInitVar": "
|
683
|
+
"memberIsInitVar": "\"{name}\" è un campo di sola inizializzazione",
|
682
684
|
"memberIsInvariant": "\"{name}\" è invariante perché modificabile",
|
683
685
|
"memberIsNotClassVarInClass": "\"{name}\" deve essere definito come ClassVar per essere compatibile con il protocollo",
|
684
686
|
"memberIsNotClassVarInProtocol": "“{name}” non è definito come ClassVar nel protocollo",
|
685
687
|
"memberIsNotFinalInProtocol": "\"{name}\" non è contrassegnato come Finale nel protocollo",
|
686
688
|
"memberIsWritableInProtocol": "\"{name}\" è scrivibile nel protocollo",
|
687
|
-
"memberSetClassVar": "Non è possibile assegnare
|
689
|
+
"memberSetClassVar": "Non è possibile assegnare l'attributo \"{name}\" tramite un'istanza di classe perché è una ClassVar",
|
688
690
|
"memberTypeMismatch": "\"{name}\" è un tipo non compatibile",
|
689
|
-
"memberUnknown": "
|
691
|
+
"memberUnknown": "L'attributo \"{name}\" è sconosciuto",
|
690
692
|
"metaclassConflict": "La metaclasse \"{metaclass1}\" è in conflitto con \"{metaclass2}\"",
|
691
693
|
"missingDeleter": "Manca il metodo di eliminazione delle proprietà",
|
692
694
|
"missingGetter": "Metodo getter proprietà mancante",
|
693
695
|
"missingSetter": "Metodo setter proprietà mancante",
|
694
696
|
"namedParamMissingInDest": "Il parametro della parola chiave \"{name}\" non è presente nella destinazione",
|
695
697
|
"namedParamMissingInSource": "Parametro della parola chiave \"{name}\" mancante nell’origine",
|
696
|
-
"namedParamTypeMismatch": "
|
698
|
+
"namedParamTypeMismatch": "Il parametro \"{name}\" della parola chiave di tipo \"{sourceType}\" non è compatibile con il tipo \"{destType}\"",
|
697
699
|
"namedTupleNotAllowed": "Non è possibile usare NamedTuple per i controlli di istanze o classi",
|
698
700
|
"newMethodLocation": "Il metodo __new__ è definito nella classe \"{type}\"",
|
699
701
|
"newMethodSignature": "La firma del __new__ è \"{type}\"",
|
@@ -725,7 +727,7 @@
|
|
725
727
|
"overridePositionalParamCount": "Numero di parametri posizionali non corrispondente. Il metodo di base ne ha {baseCount}, ma l'override ne ha {overrideCount}",
|
726
728
|
"overrideReturnType": "Tipo restituito non corrispondente: il metodo di base restituisce il tipo \"{baseType}\", l'override restituisce il tipo \"{overrideType}\"",
|
727
729
|
"overrideType": "La classe di base definisce il tipo come \"{type}\"",
|
728
|
-
"paramAssignment": "
|
730
|
+
"paramAssignment": "Parametro {index}: il tipo \"{sourceType}\" non è compatibile con il tipo \"{destType}\"",
|
729
731
|
"paramSpecMissingInOverride": "Parametri ParamSpec mancanti nel metodo di override",
|
730
732
|
"paramType": "Tipo di parametro \"{paramType}\"",
|
731
733
|
"privateImportFromPyTypedSource": "Importa da \"{module}\"",
|
@@ -755,7 +757,7 @@
|
|
755
757
|
"tupleSizeMismatch": "Dimensioni tupla non corrispondenti; previsto {expected} ma ricevuto {received}",
|
756
758
|
"tupleSizeMismatchIndeterminateDest": "Dimensioni della tupla non corrispondenti; previsto {expected} o più ma ricevuto {received}",
|
757
759
|
"typeAliasInstanceCheck": "Non è possibile usare l'alias di tipo creato con l'istruzione \"type\" con controlli di classe e istanza",
|
758
|
-
"typeAssignmentMismatch": "
|
760
|
+
"typeAssignmentMismatch": "Il tipo \"{sourceType}\" non è compatibile con il tipo \"{destType}\"",
|
759
761
|
"typeBound": "Il tipo \"{sourceType}\" non è compatibile con il tipo associato \"{destType}\" per la variabile di tipo \"{name}\"",
|
760
762
|
"typeConstrainedTypeVar": "Il tipo \"{type}\" non è compatibile con la variabile di tipo vincolato \"{name}\"",
|
761
763
|
"typeIncompatible": "\"{sourceType}\" non è compatibile con \"{destType}\"",
|
@@ -17,10 +17,10 @@
|
|
17
17
|
"abstractMethodInvocation": "メソッド \"{method}\" は抽象メソッドであり、実装されていないため、呼び出すことができません",
|
18
18
|
"annotatedParamCountMismatch": "パラメーター注釈数の不一致: {expected} が必要ですが、{received} を受信しました",
|
19
19
|
"annotatedTypeArgMissing": "\"Annotationed\" には 1 つの型引数と 1 つ以上の注釈が必要です",
|
20
|
-
"annotationBytesString": "
|
20
|
+
"annotationBytesString": "型注釈では、バイト文字列リテラルは使用できません",
|
21
21
|
"annotationFormatString": "型注釈では、書式指定文字列リテラル (f 文字列) を使用できません",
|
22
22
|
"annotationNotSupported": "このステートメントでは型注釈はサポートされていません",
|
23
|
-
"annotationRawString": "
|
23
|
+
"annotationRawString": "型注釈では、生文字列リテラルは使用できません",
|
24
24
|
"annotationSpansStrings": "型注釈を複数の文字列リテラルにまたがることはできません",
|
25
25
|
"annotationStringEscape": "型注釈にエスケープ文字を含めることはできません",
|
26
26
|
"argAssignment": "型 \"{argType}\" の引数を型 \"{paramType}\" のパラメーターに割り当てることはできません",
|
@@ -103,6 +103,7 @@
|
|
103
103
|
"dataClassBaseClassNotFrozen": "固定されたクラスは、固定されていないクラスから継承できません",
|
104
104
|
"dataClassConverterFunction": "型 \"{argType}\" の引数は、型 \"{fieldType}\" のフィールド \"{fieldName}\" の有効なコンバーターではありません",
|
105
105
|
"dataClassConverterOverloads": "{funcName}\" のオーバーロードは、型 \"{fieldType}\" のフィールド \"{fieldName}\" に対して有効なコンバーターではありません",
|
106
|
+
"dataClassFieldInheritedDefault": "\"{fieldName}\" は同じ名前のフィールドをオーバーライドしますが、既定値がありません",
|
106
107
|
"dataClassFieldWithDefault": "既定値のないフィールドは、既定値を持つフィールドの後に表示できません",
|
107
108
|
"dataClassFieldWithPrivateName": "データクラス フィールドはプライベート名を使用できません",
|
108
109
|
"dataClassFieldWithoutAnnotation": "型注釈のないデータクラス フィールドが原因でランタイム例外が発生する",
|
@@ -188,7 +189,7 @@
|
|
188
189
|
"expectedIn": "'in' が必要です",
|
189
190
|
"expectedInExpr": "\"in\" の後に式が必要です",
|
190
191
|
"expectedIndentedBlock": "インデントされたブロックが必要です",
|
191
|
-
"expectedMemberName": "\"
|
192
|
+
"expectedMemberName": "\"\" の後に属性名が必要です。",
|
192
193
|
"expectedModuleName": "必要なモジュール名",
|
193
194
|
"expectedNameAfterAs": "\"as\" の後にシンボル名が必要です",
|
194
195
|
"expectedNamedParameter": "キーワード パラメーターは \"*\" の後に続く必要があります",
|
@@ -251,6 +252,7 @@
|
|
251
252
|
"incompatibleMethodOverride": "メソッド \"{name}\" は互換性のない方法でクラス \"{className}\" をオーバーライドします",
|
252
253
|
"inconsistentIndent": "元のサイズが前のインデントと一致しません",
|
253
254
|
"inconsistentTabs": "インデントでのタブとスペースの一貫性のない使用",
|
255
|
+
"initMethodSelfParamTypeVar": "\"__init__\" メソッドの \"self\" パラメーターの型注釈にクラス スコープ型の変数を含めることはできません",
|
254
256
|
"initMustReturnNone": "\"__init__\" の戻り値の型は None でなければなりません",
|
255
257
|
"initSubclassCallFailed": "__init_subclass__ メソッドのキーワード引数が正しくありません",
|
256
258
|
"initSubclassClsParam": "__class_getitem__ override は \"cls\" パラメーターを受け取る必要があります",
|
@@ -277,16 +279,16 @@
|
|
277
279
|
"listAssignmentMismatch": "型 \"{type}\" の式をターゲット リストに割り当てることはできません",
|
278
280
|
"listInAnnotation": "型注釈ではリスト式は使用できません",
|
279
281
|
"literalEmptyArgs": "\"Literal\" の後に 1 つ以上の型引数が必要です",
|
280
|
-
"literalNamedUnicodeEscape": "
|
282
|
+
"literalNamedUnicodeEscape": "名前付き Unicode エスケープ シーケンスは、\"Literal\" 文字列注釈ではサポートされていません",
|
281
283
|
"literalNotAllowed": "\"Literal\" は、型引数なしでこのコンテキストでは使用できません",
|
282
284
|
"literalNotCallable": "リテラル型をインスタンス化できません",
|
283
285
|
"literalUnsupportedType": "\"Literal\" の型引数は None、リテラル値 (int、bool、str、または bytes)、または列挙型の値である必要があります",
|
284
286
|
"matchIncompatible": "Match ステートメントには Python 3.10 以降が必要です",
|
285
287
|
"matchIsNotExhaustive": "match ステートメント内のケースでは、すべての値が完全に処理されるわけではありません",
|
286
288
|
"maxParseDepthExceeded": "解析の最大深さを超えました。式を小さい部分式に分割する",
|
287
|
-
"memberAccess": "
|
288
|
-
"memberDelete": "
|
289
|
-
"memberSet": "
|
289
|
+
"memberAccess": "クラス \"{type}\" の属性 \"{name}\" にアクセスできません",
|
290
|
+
"memberDelete": "クラス \"{type}\" の属性 \"{name}\" を削除できません",
|
291
|
+
"memberSet": "クラス \"{type}\" の属性 \"{name}\" に割り当てることはできません",
|
290
292
|
"metaclassConflict": "派生クラスのメタクラスは、そのすべての基底クラスのメタクラスのサブクラスである必要があります",
|
291
293
|
"metaclassDuplicate": "指定できるメタクラスは 1 つだけです",
|
292
294
|
"metaclassIsGeneric": "メタクラスをジェネリックにすることはできません",
|
@@ -298,7 +300,7 @@
|
|
298
300
|
"missingSuperCall": "メソッド \"{methodName}\" は親クラスで同じ名前のメソッドを呼び出しません",
|
299
301
|
"moduleAsType": "モジュールを型として使用することはできません",
|
300
302
|
"moduleNotCallable": "モジュールは呼び出し可能ではありません",
|
301
|
-
"moduleUnknownMember": "\"{memberName}\" はモジュール \"{moduleName}\"
|
303
|
+
"moduleUnknownMember": "\"{memberName}\" はモジュール \"{moduleName}\" の既知の属性ではありません",
|
302
304
|
"namedExceptAfterCatchAll": "名前付き except 句は、catch-all except 句の後には使用できません",
|
303
305
|
"namedParamAfterParamSpecArgs": "ParamSpec args パラメーターの後にキーワード パラメーター \"{name}\" をシグネチャに含めることはできません",
|
304
306
|
"namedTupleEmptyName": "名前付きタプル内の名前を空にすることはできません",
|
@@ -332,7 +334,7 @@
|
|
332
334
|
"noneNotSubscriptable": "\"None\" 型のオブジェクトは添字可能ではありません",
|
333
335
|
"noneNotUsableWith": "\"None\" 型のオブジェクトを \"with\" と共に使用することはできません",
|
334
336
|
"noneOperator": "演算子 \"{operator}\" は \"None\" ではサポートされていません",
|
335
|
-
"noneUnknownMember": "\"{name}\" は \"None\"
|
337
|
+
"noneUnknownMember": "\"{name}\" は \"None\" の既知の属性ではありません",
|
336
338
|
"notRequiredArgCount": "\"NotRequired\" の後に 1 つの型引数が必要です",
|
337
339
|
"notRequiredNotInTypedDict": "\"NotRequired\" はこのコンテキストでは許可されていません",
|
338
340
|
"objectNotCallable": "型 \"{type}\" のオブジェクトは呼び出し可能ではありません",
|
@@ -363,18 +365,18 @@
|
|
363
365
|
"paramAnnotationMissing": "パラメーター \"{name}\" に型注釈がありません",
|
364
366
|
"paramAssignmentMismatch": "型 \"{sourceType}\" の式を型 \"{paramType}\" のパラメーターに割り当てることはできません",
|
365
367
|
"paramNameMissing": "\"{name}\" という名前のパラメーターがありません",
|
366
|
-
"paramSpecArgsKwargsUsage": "ParamSpec の \"args\"
|
368
|
+
"paramSpecArgsKwargsUsage": "ParamSpec の \"args\" 属性と \"kwargs\" 属性の両方が関数シグネチャ内に含まれている必要があります",
|
367
369
|
"paramSpecArgsMissing": "ParamSpec \"{type}\" の引数がありません",
|
368
|
-
"paramSpecArgsUsage": "ParamSpec の \"args\"
|
370
|
+
"paramSpecArgsUsage": "ParamSpec の \"args\" 属性は、*args パラメーターと共に使用する場合にのみ有効です",
|
369
371
|
"paramSpecAssignedName": "ParamSpec は 、\"{name}\" という名前の変数に割り当てる必要があります",
|
370
372
|
"paramSpecContext": "ParamSpec はこのコンテキストでは許可されていません",
|
371
373
|
"paramSpecDefaultNotTuple": "ParamSpec の既定値には、省略記号、タプル式、または ParamSpec が必要です",
|
372
374
|
"paramSpecFirstArg": "最初の引数として ParamSpec の名前が必要です",
|
373
|
-
"paramSpecKwargsUsage": "ParamSpec の \"kwargs\"
|
375
|
+
"paramSpecKwargsUsage": "ParamSpec の \"kwargs\" 属性は、**kwargs パラメーターと共に使用する場合にのみ有効です",
|
374
376
|
"paramSpecNotUsedByOuterScope": "ParamSpec \"{name}\" はこのコンテキストでは意味がありません",
|
375
377
|
"paramSpecScopedToReturnType": "ParamSpec \"{name}\" は、戻り値の型内の呼び出し可能なスコープであり、関数本体では参照できません",
|
376
378
|
"paramSpecUnknownArg": "ParamSpec は複数の引数をサポートしていません",
|
377
|
-
"paramSpecUnknownMember": "\"{name}\" は ParamSpec
|
379
|
+
"paramSpecUnknownMember": "\"{name}\" は ParamSpec の既知の属性ではありません",
|
378
380
|
"paramSpecUnknownParam": "\"{name}\" は ParamSpec に対する不明なパラメーターです",
|
379
381
|
"paramTypeCovariant": "共変の型変数はパラメーター型では使用できません",
|
380
382
|
"paramTypePartiallyUnknown": "パラメーター \"{paramName}\" の型が部分的に不明です",
|
@@ -418,7 +420,7 @@
|
|
418
420
|
"returnMissing": "戻り値の型が \"{returnType}\" として宣言されている関数は、すべてのコード パスで値を返す必要があります",
|
419
421
|
"returnOutsideFunction": "\"return\" は関数内でのみ使用できます",
|
420
422
|
"returnTypeContravariant": "反変の型変数は戻り値の型では使用できません",
|
421
|
-
"returnTypeMismatch": "型 \"{exprType}\"
|
423
|
+
"returnTypeMismatch": "型 \"{exprType}\" の式は戻り値の型 \"{returnType}\" と互換性がありません",
|
422
424
|
"returnTypePartiallyUnknown": "戻り値の型 \"{returnType}\" は部分的に不明です",
|
423
425
|
"returnTypeUnknown": "戻り値の型が不明です",
|
424
426
|
"revealLocalsArgs": "\"reveal_locals\" 呼び出しに引数が必要ありません",
|
@@ -484,8 +486,8 @@
|
|
484
486
|
"typeArgsMissingForClass": "ジェネリック クラス \"{name}\" に必要な型引数",
|
485
487
|
"typeArgsTooFew": "\"{name}\" に指定された型引数が少なすぎます。{expected} が必要ですが、{received} を受信しました",
|
486
488
|
"typeArgsTooMany": "\"{name}\" に指定された型引数が多すぎます。{expected} が必要ですが、{received} を受信しました",
|
487
|
-
"typeAssignmentMismatch": "型 \"{sourceType}\"
|
488
|
-
"typeAssignmentMismatchWildcard": "
|
489
|
+
"typeAssignmentMismatch": "型 \"{sourceType}\" の式は、宣言された型 \"{destType}\" と互換性がありません",
|
490
|
+
"typeAssignmentMismatchWildcard": "インポート シンボル \"{name}\" の型は \"{sourceType}\" で、宣言された型 \"{destType}\" と互換性がありません",
|
489
491
|
"typeCallNotAllowed": "type() 呼び出しは型注釈で使用しないでください",
|
490
492
|
"typeCheckOnly": "\"{name}\" は@type_check_onlyとしてマークされており、型注釈でのみ使用できます",
|
491
493
|
"typeCommentDeprecated": "型コメントの使用は非推奨です。代わりに型注釈を使用してください",
|
@@ -520,7 +522,7 @@
|
|
520
522
|
"typeVarDefaultIllegal": "型変数の既定の型には Python 3.13 以降が必要です",
|
521
523
|
"typeVarDefaultInvalidTypeVar": "型パラメーター \"{name}\" には、スコープ外の 1 つ以上の型変数を参照する既定の型があります",
|
522
524
|
"typeVarFirstArg": "最初の引数として TypeVar の名前が必要です",
|
523
|
-
"typeVarNoMember": "TypeVar \"{type}\"
|
525
|
+
"typeVarNoMember": "TypeVar \"{type}\" には属性 \"{name}\" がありません",
|
524
526
|
"typeVarNotSubscriptable": "TypeVar \"{type}\" は添字可能ではありません",
|
525
527
|
"typeVarNotUsedByOuterScope": "型変数 \"{name}\" は、このコンテキストでは意味がありません",
|
526
528
|
"typeVarPossiblyUnsolvable": "呼び出し元がパラメーター \"{param}\" に引数を指定しない場合、型変数 \"{name}\" は解決されない可能性があります",
|
@@ -634,7 +636,7 @@
|
|
634
636
|
"argsPositionOnly": "位置のみのパラメーターの不一致。{expected} が必要ですが、{received} を受信しました",
|
635
637
|
"argumentType": "引数の型は \"{type}\" です",
|
636
638
|
"argumentTypes": "引数の型: ({types})",
|
637
|
-
"assignToNone": "
|
639
|
+
"assignToNone": "型は \"None\" と互換性がありません",
|
638
640
|
"asyncHelp": "\"async with\" を意味しましたか?",
|
639
641
|
"baseClassIncompatible": "基底クラス \"{baseClass}\" は型 \"{type}\" と互換性がありません",
|
640
642
|
"baseClassIncompatibleSubclass": "基底クラス \"{baseClass}\" は、型 \"{type}\" と互換性のない \"{subclass}\" から派生しています",
|
@@ -670,30 +672,30 @@
|
|
670
672
|
"keyUndefined": "\"{name}\" は \"{type}\" で定義されたキーではありません",
|
671
673
|
"kwargsParamMissing": "パラメーター \"**{paramName}\" に対応するパラメーターがありません",
|
672
674
|
"listAssignmentMismatch": "型 \"{type}\" はターゲット リストと互換性がありません",
|
673
|
-
"literalAssignmentMismatch": "\"{sourceType}\"
|
675
|
+
"literalAssignmentMismatch": "\"{sourceType}\" は型 \"{destType}\" と互換性がありません",
|
674
676
|
"matchIsNotExhaustiveHint": "完全な処理が意図されていない場合は、\"case _: pass\" を追加します",
|
675
677
|
"matchIsNotExhaustiveType": "ハンドルされない型: \"{type}\"",
|
676
|
-
"memberAssignment": "型 \"{type}\" の式をクラス \"{classType}\"
|
678
|
+
"memberAssignment": "型 \"{type}\" の式をクラス \"{classType}\" の属性 \"{name}\" に割り当てることはできません",
|
677
679
|
"memberIsAbstract": "\"{type}.{name}\" は実装されていません",
|
678
680
|
"memberIsAbstractMore": "その他 {count} 件...",
|
679
681
|
"memberIsClassVarInProtocol": "\"{name}\" はプロトコルで ClassVar として定義されています",
|
680
682
|
"memberIsFinalInProtocol": "\"{name}\" はプロトコルで Final とマークされています",
|
681
|
-
"memberIsInitVar": "
|
683
|
+
"memberIsInitVar": "\"{name}\" は init 専用フィールドです",
|
682
684
|
"memberIsInvariant": "\"{name}\" は変更可能であるため、不変です",
|
683
685
|
"memberIsNotClassVarInClass": "プロトコルと互換性を持たせるには、\"{name}\" を ClassVar として定義する必要があります",
|
684
686
|
"memberIsNotClassVarInProtocol": "\"{name}\" はプロトコルで ClassVar として定義されていません",
|
685
687
|
"memberIsNotFinalInProtocol": "\"{name}\" はプロトコルで Final としてマークされていません",
|
686
688
|
"memberIsWritableInProtocol": "\"{name}\" はプロトコルで書き込み可能です",
|
687
|
-
"memberSetClassVar": "
|
689
|
+
"memberSetClassVar": "属性 \"{name}\" は ClassVar であるため、クラス インスタンスを介して割り当てることはできません",
|
688
690
|
"memberTypeMismatch": "\"{name}\" は互換性のない型です",
|
689
|
-
"memberUnknown": "
|
691
|
+
"memberUnknown": "属性 \"{name}\" が不明です",
|
690
692
|
"metaclassConflict": "メタクラス \"{metaclass1}\" が \"{metaclass2}\" と競合しています",
|
691
693
|
"missingDeleter": "プロパティ削除メソッドがありません",
|
692
694
|
"missingGetter": "プロパティ getter メソッドがありません",
|
693
695
|
"missingSetter": "プロパティ セッター メソッドがありません",
|
694
696
|
"namedParamMissingInDest": "キーワード パラメーター \"{name}\" が変換先に見つかりません",
|
695
697
|
"namedParamMissingInSource": "キーワード パラメーター \"{name}\" がソースに見つかりません",
|
696
|
-
"namedParamTypeMismatch": "型 \"{sourceType}\" のキーワード パラメーター \"{name}\"
|
698
|
+
"namedParamTypeMismatch": "型 \"{sourceType}\" のキーワード パラメーター \"{name}\" は型 \"{destType}\" と互換性がありません",
|
697
699
|
"namedTupleNotAllowed": "NamedTuple はインスタンスまたはクラスのチェックには使用できません",
|
698
700
|
"newMethodLocation": "__new__ メソッドはクラス \"{type}\" で定義されています",
|
699
701
|
"newMethodSignature": "__new__の署名は \"{type}\" です",
|
@@ -725,7 +727,7 @@
|
|
725
727
|
"overridePositionalParamCount": "位置指定パラメーター数が一致しません。基本メソッドには {baseCount} がありますが、オーバーライドには {overrideCount} があります",
|
726
728
|
"overrideReturnType": "戻り値の型の不一致: 基本メソッドは型 \"{baseType}\" を返し、オーバーライドは型 \"{overrideType}\" を返します",
|
727
729
|
"overrideType": "基底クラスは型を \"{type}\" として定義します",
|
728
|
-
"paramAssignment": "パラメーター {index}: 型 \"{sourceType}\"
|
730
|
+
"paramAssignment": "パラメーター {index}: 型 \"{sourceType}\" は型 \"{destType}\" と互換性がありません",
|
729
731
|
"paramSpecMissingInOverride": "ParamSpec パラメーターが override メソッドに見つかりません",
|
730
732
|
"paramType": "パラメーターの型は \"{paramType}\" です",
|
731
733
|
"privateImportFromPyTypedSource": "代わりに \"{module}\" からインポートする",
|
@@ -755,7 +757,7 @@
|
|
755
757
|
"tupleSizeMismatch": "タプルのサイズが一致しません。{expected} が必要ですが、{received} を受信しました",
|
756
758
|
"tupleSizeMismatchIndeterminateDest": "タプルのサイズが一致しません。{expected} 以上が必要ですが、{received} を受信しました",
|
757
759
|
"typeAliasInstanceCheck": "\"type\" ステートメントで作成された型エイリアスは、インスタンスとクラスのチェックでは使用できません",
|
758
|
-
"typeAssignmentMismatch": "型 \"{sourceType}\"
|
760
|
+
"typeAssignmentMismatch": "型 \"{sourceType}\" は型 \"{destType}\" と互換性がありません",
|
759
761
|
"typeBound": "型 \"{sourceType}\" は、型変数 \"{name}\" のバインドされた型 \"{destType}\" と互換性がありません",
|
760
762
|
"typeConstrainedTypeVar": "型 \"{type}\" は制約付き型変数 \"{name}\" と互換性がありません",
|
761
763
|
"typeIncompatible": "\"{sourceType}\" は \"{destType}\" と互換性がありません",
|