@zzzen/pyright-internal 1.2.0-dev.20251019 → 1.2.0-dev.20251102
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/binder.d.ts +0 -1
- package/dist/analyzer/binder.js +2 -18
- package/dist/analyzer/binder.js.map +1 -1
- package/dist/analyzer/declarationUtils.js +3 -0
- package/dist/analyzer/declarationUtils.js.map +1 -1
- package/dist/analyzer/decorators.js +8 -2
- package/dist/analyzer/decorators.js.map +1 -1
- package/dist/analyzer/importStatementUtils.d.ts +2 -0
- package/dist/analyzer/importStatementUtils.js +18 -0
- package/dist/analyzer/importStatementUtils.js.map +1 -1
- package/dist/analyzer/typeEvaluator.js +8 -7
- package/dist/analyzer/typeEvaluator.js.map +1 -1
- package/dist/common/serviceKeys.js +15 -15
- package/dist/common/serviceKeys.js.map +1 -1
- package/dist/common/serviceProvider.d.ts +5 -0
- package/dist/common/serviceProvider.js +11 -9
- package/dist/common/serviceProvider.js.map +1 -1
- package/dist/languageServerBase.d.ts +1 -0
- package/dist/languageServerBase.js +3 -0
- package/dist/languageServerBase.js.map +1 -1
- package/dist/localization/package.nls.cs.json +3 -1
- package/dist/localization/package.nls.de.json +3 -1
- package/dist/localization/package.nls.es.json +3 -1
- package/dist/localization/package.nls.fr.json +3 -1
- package/dist/localization/package.nls.it.json +3 -1
- package/dist/localization/package.nls.ja.json +3 -1
- package/dist/localization/package.nls.ko.json +3 -1
- package/dist/localization/package.nls.pl.json +3 -1
- package/dist/localization/package.nls.pt-br.json +3 -1
- package/dist/localization/package.nls.qps-ploc.json +3 -1
- package/dist/localization/package.nls.ru.json +3 -1
- package/dist/localization/package.nls.tr.json +3 -1
- package/dist/localization/package.nls.zh-cn.json +3 -1
- package/dist/localization/package.nls.zh-tw.json +3 -1
- package/package.json +21 -21
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"classMethodClsParam": "Os métodos de classe devem usar um parâmetro \"cls\"",
|
|
76
76
|
"classNotRuntimeSubscriptable": "O subscrito para a classe \"{name}\" gerará uma exceção de runtime. Coloque a expressão de tipo entre aspas",
|
|
77
77
|
"classPatternBuiltInArgPositional": "O padrão de classe aceita apenas sub-padrão posicional",
|
|
78
|
+
"classPatternNewType": "\"{type}\" cannot be used in a class pattern because it is defined using NewType",
|
|
78
79
|
"classPatternPositionalArgCount": "Muitos padrões posicionais para a classe \"{type}\"; esperado {expected} mas recebido {received}",
|
|
79
80
|
"classPatternTypeAlias": "\"{type}\" não pode ser usado em um padrão de classe porque é um alias de tipo especializado",
|
|
80
81
|
"classPropertyDeprecated": "As propriedades de classe foram preteridas no Python 3.11 e não terão suporte no Python 3.13",
|
|
@@ -434,7 +435,7 @@
|
|
|
434
435
|
"pyrightCommentNotOnOwnLine": "Comentários Pyright usados para controlar as configurações de nível de arquivo devem aparecer em sua própria linha",
|
|
435
436
|
"pyrightCommentUnknownDiagnosticRule": "\"{rule}\" é uma regra de diagnóstico desconhecida para o comentário pyright",
|
|
436
437
|
"pyrightCommentUnknownDiagnosticSeverityValue": "\"{value}\" é um valor inválido para o comentário pyright. true, false, error, warning, information ou none esperados.",
|
|
437
|
-
"pyrightCommentUnknownDirective": "\"{directive}\"
|
|
438
|
+
"pyrightCommentUnknownDirective": "\"{directive}\" is an unknown directive for pyright comment; expected \"strict\", \"standard\", or \"basic\"",
|
|
438
439
|
"readOnlyArgCount": "Argumento de tipo único esperado após \"ReadOnly\"",
|
|
439
440
|
"readOnlyNotInTypedDict": "\"ReadOnly\" não é permitido neste contexto",
|
|
440
441
|
"recursiveDefinition": "Não foi possível determinar o tipo de \"{name}\" porque ele refere-se a si mesmo",
|
|
@@ -823,6 +824,7 @@
|
|
|
823
824
|
"typedDictClassNotAllowed": "A classe TypedDict não é permitida para verificações de instância ou classe",
|
|
824
825
|
"typedDictClosedExtraNotAllowed": "Não é possível adicionar o item \"{name}\"",
|
|
825
826
|
"typedDictClosedExtraTypeMismatch": "Não é possível adicionar o item \"{name}\" com o tipo \"{type}\"",
|
|
827
|
+
"typedDictClosedFieldNotReadOnly": "Cannot add item \"{name}\" because it must be ReadOnly",
|
|
826
828
|
"typedDictClosedFieldNotRequired": "Não é possível adicionar o item \"{name}\" porque ele deve ser NotRequired",
|
|
827
829
|
"typedDictExtraFieldNotAllowed": "\"{name}\" não está presente em \"{type}\"",
|
|
828
830
|
"typedDictExtraFieldTypeMismatch": "Tipo de \"{name}\" é incompatível com tipo de \"extra_items\" em \"{type}\"",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"classMethodClsParam": "[aWMN3][นั้Çlæss mëthøðs shøµlð tækë æ \"cls\" pæræmëtërẤğ倪İЂҰक्र्तिृまẤğ倪นั้ढूँ]",
|
|
76
76
|
"classNotRuntimeSubscriptable": "[O9BL6][นั้§µþsçrïpt før çlæss \"{ñæmë}\" wïll gëñërætë rµñtïmë ëxçëptïøñ; ëñçløsë tÿpë ëxprëssïøñ ïñ qµøtësẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्นั้ढूँ]",
|
|
77
77
|
"classPatternBuiltInArgPositional": "[DOfs5][นั้Çlæss pættërñ æççëpts øñlÿ pøsïtïøñæl sµþ-pættërñẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰนั้ढूँ]",
|
|
78
|
+
"classPatternNewType": "[9l6u3][นั้\"{tÿpë}\" çæññøt þë µsëð ïñ æ çlæss pættërñ þëçæµsë ït ïs ðëfïñëð µsïñg ÑëwTÿpëẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪นั้ढूँ]",
|
|
78
79
|
"classPatternPositionalArgCount": "[B65y5][นั้Tøø mæñÿ pøsïtïøñæl pættërñs før çlæss \"{tÿpë}\"; ëxpëçtëð {ëxpëçtëð} þµt rëçëïvëð {rëçëïvëð}Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्นั้ढूँ]",
|
|
79
80
|
"classPatternTypeAlias": "[AxDtv][นั้\"{tÿpë}\" çæññøt þë µsëð ïñ æ çlæss pættërñ þëçæµsë ït ïs æ spëçïælïzëð tÿpë ælïæsẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İนั้ढूँ]",
|
|
80
81
|
"classPropertyDeprecated": "[Q6JgP][นั้Çlæss prøpërtïës ærë ðëprëçætëð ïñ Pÿthøñ 3.11 æñð wïll ñøt þë sµppørtëð ïñ Pÿthøñ 3.13Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्นั้ढूँ]",
|
|
@@ -434,7 +435,7 @@
|
|
|
434
435
|
"pyrightCommentNotOnOwnLine": "[mM2bV][นั้Pyright çømmëñts µsëð tø çøñtrøl fïlë-lëvël sëttïñgs mµst æppëær øñ thëïr øwñ lïñëẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İЂนั้ढूँ]",
|
|
435
436
|
"pyrightCommentUnknownDiagnosticRule": "[DFAZp][นั้\"{rµlë}\" ïs æñ µñkñøwñ ðïægñøstïç rµlë før pyright çømmëñtẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्นั้ढूँ]",
|
|
436
437
|
"pyrightCommentUnknownDiagnosticSeverityValue": "[Tgt0Y][นั้\"{vælµë}\" ïs ïñvælïð vælµë før pyright çømmëñt; ëxpëçtëð true, false, error, warning, information, ør noneẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまนั้ढूँ]",
|
|
437
|
-
"pyrightCommentUnknownDirective": "[HD6T4][นั้\"{ðïrëçtïvë}\" ïs æñ µñkñøwñ ðïrëçtïvë før pyright çømmëñt; ëxpëçtëð \"strict\" ør \"basic\"
|
|
438
|
+
"pyrightCommentUnknownDirective": "[HD6T4][นั้\"{ðïrëçtïvë}\" ïs æñ µñkñøwñ ðïrëçtïvë før pyright çømmëñt; ëxpëçtëð \"strict\", \"standard\", ør \"basic\"Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृนั้ढूँ]",
|
|
438
439
|
"readOnlyArgCount": "[B1Erm][นั้Ëxpëçtëð æ sïñglë tÿpë ærgµmëñt æftër \"ReadOnly\"Ấğ倪İЂҰक्र्तिृまẤğ倪İЂนั้ढूँ]",
|
|
439
440
|
"readOnlyNotInTypedDict": "[xJrLN][นั้\"ReadOnly\" ïs ñøt ælløwëð ïñ thïs çøñtëxtẤğ倪İЂҰक्र्तिृまẤğนั้ढूँ]",
|
|
440
441
|
"recursiveDefinition": "[G3UUN][นั้Tÿpë øf \"{ñæmë}\" çøµlð ñøt þë ðëtërmïñëð þëçæµsë ït rëfërs tø ïtsëlfẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृนั้ढूँ]",
|
|
@@ -823,6 +824,7 @@
|
|
|
823
824
|
"typedDictClassNotAllowed": "[Vgl7x][นั้TypedDict çlæss ñøt ælløwëð før ïñstæñçë ør çlæss çhëçksẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्นั้ढूँ]",
|
|
824
825
|
"typedDictClosedExtraNotAllowed": "[zT7Rm][นั้Çæññøt æðð ïtëm \"{ñæmë}\"Ấğ倪İЂҰक्र्นั้ढूँ]",
|
|
825
826
|
"typedDictClosedExtraTypeMismatch": "[blC1e][นั้Çæññøt æðð ïtëm \"{ñæmë}\" wïth tÿpë \"{tÿpë}\"Ấğ倪İЂҰक्र्तिृまẤğ倪นั้ढूँ]",
|
|
827
|
+
"typedDictClosedFieldNotReadOnly": "[45ICT][นั้Çæññøt æðð ïtëm \"{ñæmë}\" þëçæµsë ït mµst þë ReadOnlyẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्นั้ढूँ]",
|
|
826
828
|
"typedDictClosedFieldNotRequired": "[6rtDR][นั้Çæññøt æðð ïtëm \"{ñæmë}\" þëçæµsë ït mµst þë NotRequiredẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्นั้ढूँ]",
|
|
827
829
|
"typedDictExtraFieldNotAllowed": "[kFDh9][นั้\"{ñæmë}\" ïs ñøt prësëñt ïñ \"{tÿpë}\"Ấğ倪İЂҰक्र्तिृまนั้ढूँ]",
|
|
828
830
|
"typedDictExtraFieldTypeMismatch": "[DnAhM][นั้Tÿpë øf \"{ñæmë}\" ïs ïñçømpætïþlë wïth tÿpë øf \"extra_items\" ïñ \"{tÿpë}\"Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまนั้ढूँ]",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"classMethodClsParam": "Методы класса должны принимать параметр cls",
|
|
76
76
|
"classNotRuntimeSubscriptable": "Операция взятия подстроки для класса \"{name}\" создаст исключение среды выполнения; заключите выражение типа в кавычки",
|
|
77
77
|
"classPatternBuiltInArgPositional": "Шаблон класса принимает только позиционный вложенный шаблон",
|
|
78
|
+
"classPatternNewType": "\"{type}\" cannot be used in a class pattern because it is defined using NewType",
|
|
78
79
|
"classPatternPositionalArgCount": "Слишком много позиционных шаблонов для класса \"{type}\"; ожидается {expected}, но получено {received}",
|
|
79
80
|
"classPatternTypeAlias": "\"{type}\" нельзя использовать в шаблоне класса, поскольку это псевдоним специализированного типа",
|
|
80
81
|
"classPropertyDeprecated": "Свойства класса упразднены в Python 3.11 и не будут поддерживаться в Python 3.13",
|
|
@@ -434,7 +435,7 @@
|
|
|
434
435
|
"pyrightCommentNotOnOwnLine": "Комментарии Pyright, используемые для управления параметрами на уровне файлов, должны располагаться в отдельной строке",
|
|
435
436
|
"pyrightCommentUnknownDiagnosticRule": "Правило диагностики \"{rule}\" для комментария pyright неизвестно",
|
|
436
437
|
"pyrightCommentUnknownDiagnosticSeverityValue": "Значение \"{value}\" недопустимо для комментария pyright; ожидается одно из значений true, false, error, warning, information или none",
|
|
437
|
-
"pyrightCommentUnknownDirective": "\"{directive}\"
|
|
438
|
+
"pyrightCommentUnknownDirective": "\"{directive}\" is an unknown directive for pyright comment; expected \"strict\", \"standard\", or \"basic\"",
|
|
438
439
|
"readOnlyArgCount": "Ожидается один аргумент типа после \"ReadOnly\"",
|
|
439
440
|
"readOnlyNotInTypedDict": "Использование \"ReadOnly\" в этом контексте не допускается",
|
|
440
441
|
"recursiveDefinition": "Не удалось определить тип \"{name}\", так как он ссылается на себя",
|
|
@@ -823,6 +824,7 @@
|
|
|
823
824
|
"typedDictClassNotAllowed": "Класс TypedDict не допускается для проверок экземпляров или классов",
|
|
824
825
|
"typedDictClosedExtraNotAllowed": "Не удается добавить элемент \"{name}\"",
|
|
825
826
|
"typedDictClosedExtraTypeMismatch": "Не удается добавить элемент \"{name}\" типа \"{type}\"",
|
|
827
|
+
"typedDictClosedFieldNotReadOnly": "Cannot add item \"{name}\" because it must be ReadOnly",
|
|
826
828
|
"typedDictClosedFieldNotRequired": "Не удается добавить элемент \"{name}\", так как он должен быть помечен как NotRequired",
|
|
827
829
|
"typedDictExtraFieldNotAllowed": "Элемент \"{name}\" отсутствует в типе \"{type}\"",
|
|
828
830
|
"typedDictExtraFieldTypeMismatch": "Тип \"{name}\" несовместим с типом \"extra_items\" в \"{type}\"",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"classMethodClsParam": "Sınıf metotları bir \"cls\" parametresi almalıdır",
|
|
76
76
|
"classNotRuntimeSubscriptable": "\"{name}\" sınıfına ait alt simge çalışma zamanı özel durumunu oluşturur; tür ifadelerini tırnak içine alın",
|
|
77
77
|
"classPatternBuiltInArgPositional": "Sınıf deseni yalnızca konumsal alt desen kabul eder",
|
|
78
|
+
"classPatternNewType": "\"{type}\" cannot be used in a class pattern because it is defined using NewType",
|
|
78
79
|
"classPatternPositionalArgCount": "\"{type}\" sınıfı için çok fazla konumsal desen var; {expected} bekleniyordu ancak {received} alındı",
|
|
79
80
|
"classPatternTypeAlias": "\"{type}\" özel bir tür diğer adı olduğundan sınıf deseninde kullanılamaz",
|
|
80
81
|
"classPropertyDeprecated": "Sınıf özellikleri Python 3.11'de kullanım dışıdır ve Python 3.13'te desteklenmez",
|
|
@@ -434,7 +435,7 @@
|
|
|
434
435
|
"pyrightCommentNotOnOwnLine": "Pyright comments used to control file-level settings must appear on their own line",
|
|
435
436
|
"pyrightCommentUnknownDiagnosticRule": "\"{rule}\", pyright açıklaması için bilinmeyen bir tanılama kuralı",
|
|
436
437
|
"pyrightCommentUnknownDiagnosticSeverityValue": "\"{value}\" pyright açıklaması için geçersiz değer; true, false, error, warning, information veya none bekleniyordu",
|
|
437
|
-
"pyrightCommentUnknownDirective": "\"{directive}\"
|
|
438
|
+
"pyrightCommentUnknownDirective": "\"{directive}\" is an unknown directive for pyright comment; expected \"strict\", \"standard\", or \"basic\"",
|
|
438
439
|
"readOnlyArgCount": "\"ReadOnly\" sonrasında tek bir tür bağımsız değişken bekleniyordu",
|
|
439
440
|
"readOnlyNotInTypedDict": "Bu bağlamda \"ReadOnly\" kullanımına izin verilmiyor",
|
|
440
441
|
"recursiveDefinition": "Kendine başvurduğundan \"{name}\" türü belirlenemedi",
|
|
@@ -823,6 +824,7 @@
|
|
|
823
824
|
"typedDictClassNotAllowed": "Örnek veya sınıf denetimleri için TypedDict sınıfına izin verilmiyor",
|
|
824
825
|
"typedDictClosedExtraNotAllowed": "\"{name}\" öğesi eklenemiyor",
|
|
825
826
|
"typedDictClosedExtraTypeMismatch": "\"{type}\" türündeki \"{name}\" öğesi eklenemiyor",
|
|
827
|
+
"typedDictClosedFieldNotReadOnly": "Cannot add item \"{name}\" because it must be ReadOnly",
|
|
826
828
|
"typedDictClosedFieldNotRequired": "NotRequired olması gerektiğinden \"{name}\" öğesi eklenemiyor",
|
|
827
829
|
"typedDictExtraFieldNotAllowed": "\"{name}\" öğesi \"{type}\" türünde mevcut değil",
|
|
828
830
|
"typedDictExtraFieldTypeMismatch": "\"{name}\" türü, \"{type}\" altındaki \"extra_items\" türüyle uyumlu değil",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"classMethodClsParam": "类方法应采用“cls”参数",
|
|
76
76
|
"classNotRuntimeSubscriptable": "类 \"{name}\" 的下标将生成运行时异常; 请将类型表达式括在引号中",
|
|
77
77
|
"classPatternBuiltInArgPositional": "类模式仅接受位置子模式",
|
|
78
|
+
"classPatternNewType": "\"{type}\" cannot be used in a class pattern because it is defined using NewType",
|
|
78
79
|
"classPatternPositionalArgCount": "类“{type}”的位置模式太多; 应为 {expected},但收到了 {received}",
|
|
79
80
|
"classPatternTypeAlias": "无法在类模式中使用“{type}”,因为它是专用类型别名",
|
|
80
81
|
"classPropertyDeprecated": "类属性在 Python 3.11 中已弃用,在 Python 3.13 中将不受支持",
|
|
@@ -434,7 +435,7 @@
|
|
|
434
435
|
"pyrightCommentNotOnOwnLine": "用于控制文件级设置的 Pyright 注释必须显示在其自己的行上",
|
|
435
436
|
"pyrightCommentUnknownDiagnosticRule": "“{rule}”是 pyright 注释的未知诊断规则",
|
|
436
437
|
"pyrightCommentUnknownDiagnosticSeverityValue": "\"{value}\"是 pyright 注释的无效值;应为 true、false、error、warning、information 或 none",
|
|
437
|
-
"pyrightCommentUnknownDirective": "\"{directive}\"
|
|
438
|
+
"pyrightCommentUnknownDirective": "\"{directive}\" is an unknown directive for pyright comment; expected \"strict\", \"standard\", or \"basic\"",
|
|
438
439
|
"readOnlyArgCount": "“ReadOnly”后应为单个类型参数",
|
|
439
440
|
"readOnlyNotInTypedDict": "此上下文中不允许使用“ReadOnly”",
|
|
440
441
|
"recursiveDefinition": "无法确定“{name}”的类型,因为它引用其自身",
|
|
@@ -823,6 +824,7 @@
|
|
|
823
824
|
"typedDictClassNotAllowed": "不允许对实例或类检查使用 TypedDict 类",
|
|
824
825
|
"typedDictClosedExtraNotAllowed": "无法添加项“{name}”",
|
|
825
826
|
"typedDictClosedExtraTypeMismatch": "无法添加类型为“{type}”的项“{name}”",
|
|
827
|
+
"typedDictClosedFieldNotReadOnly": "Cannot add item \"{name}\" because it must be ReadOnly",
|
|
826
828
|
"typedDictClosedFieldNotRequired": "无法添加项“{name}”,因为它必须是 NotRequired",
|
|
827
829
|
"typedDictExtraFieldNotAllowed": "“{type}”中不存在“{name}”",
|
|
828
830
|
"typedDictExtraFieldTypeMismatch": "“{name}”的类型与“{type}”中的 “extra_items” 类型不兼容",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"classMethodClsParam": "類別方法應採用 \"cls\" 參數",
|
|
76
76
|
"classNotRuntimeSubscriptable": "類別 \"{name}\" 的下標會產生執行階段例外; 以引號括住類型運算式",
|
|
77
77
|
"classPatternBuiltInArgPositional": "類別模式僅接受位置子模式",
|
|
78
|
+
"classPatternNewType": "\"{type}\" cannot be used in a class pattern because it is defined using NewType",
|
|
78
79
|
"classPatternPositionalArgCount": "類別 \"{type}\" 的位置模式太多;預期 {expected} 但收到 {received}",
|
|
79
80
|
"classPatternTypeAlias": "無法在類別模式中使用 \"{type}\",因為它是特殊的型別別名",
|
|
80
81
|
"classPropertyDeprecated": "類別屬性在 Python 3.11 中已取代,在 Python 3.13 中將不受支援",
|
|
@@ -434,7 +435,7 @@
|
|
|
434
435
|
"pyrightCommentNotOnOwnLine": "用來控制檔案層級設定的 Pyright 註解必須出現在自己的行上",
|
|
435
436
|
"pyrightCommentUnknownDiagnosticRule": "\"{rule}\" 是 pyright 註解未知的診斷規則",
|
|
436
437
|
"pyrightCommentUnknownDiagnosticSeverityValue": "\"{value}\" 是 pyright 註解無效的值; 預期為 true、false、error、warning、information 或 none",
|
|
437
|
-
"pyrightCommentUnknownDirective": "\"{directive}\"
|
|
438
|
+
"pyrightCommentUnknownDirective": "\"{directive}\" is an unknown directive for pyright comment; expected \"strict\", \"standard\", or \"basic\"",
|
|
438
439
|
"readOnlyArgCount": "\"ReadOnly\" 後面應有單一型別引數",
|
|
439
440
|
"readOnlyNotInTypedDict": "此內容中不允許 \"ReadOnly\"",
|
|
440
441
|
"recursiveDefinition": "無法判斷 \"{name}\" 型別,因為它參照了自己",
|
|
@@ -823,6 +824,7 @@
|
|
|
823
824
|
"typedDictClassNotAllowed": "執行個體或類別檢查不允許 TypedDict 類別",
|
|
824
825
|
"typedDictClosedExtraNotAllowed": "無法新增項目 \"{name}\"",
|
|
825
826
|
"typedDictClosedExtraTypeMismatch": "無法新增型別為 \"{type}\" 的項目 \"{name}\"",
|
|
827
|
+
"typedDictClosedFieldNotReadOnly": "Cannot add item \"{name}\" because it must be ReadOnly",
|
|
826
828
|
"typedDictClosedFieldNotRequired": "無法新增項目 \"{name}\",因為它必須是 NotRequired",
|
|
827
829
|
"typedDictExtraFieldNotAllowed": "\"{name}\" 不存在於 \"{type}\"",
|
|
828
830
|
"typedDictExtraFieldTypeMismatch": "\"{name}\" 的類型與 \"{type}\" 中 \"extra_items\" 的類型不相容",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@zzzen/pyright-internal",
|
|
3
3
|
"displayName": "pyright",
|
|
4
4
|
"description": "Type checker for the Python language",
|
|
5
|
-
"version": "1.2.0-dev.
|
|
5
|
+
"version": "1.2.0-dev.20251102",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
8
8
|
"files": [
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"clean": "shx rm -rf ./dist ./out",
|
|
14
14
|
"webpack:testserver": "webpack --config ./src/tests/lsp/webpack.testserver.config.js --mode=development",
|
|
15
15
|
"webpack:testserver:watch": "npm run clean && webpack --config ./src/tests/lsp/webpack.testserver.config.js --mode development --watch --progress",
|
|
16
|
-
"test": "npm run webpack:testserver && jest --forceExit",
|
|
17
|
-
"test:norebuild": "jest --forceExit",
|
|
18
|
-
"test:coverage": "jest --forceExit --reporters=jest-junit --reporters=default --coverage --coverageReporters=cobertura --coverageReporters=html --coverageReporters=json",
|
|
19
|
-
"test:imports": "jest importResolver.test --forceExit --runInBand"
|
|
16
|
+
"test": "npm run webpack:testserver && node --max-old-space-size=8192 --expose-gc ./node_modules/jest/bin/jest --forceExit",
|
|
17
|
+
"test:norebuild": "node --max-old-space-size=8192 --expose-gc ./node_modules/jest/bin/jest --forceExit",
|
|
18
|
+
"test:coverage": "node --max-old-space-size=8192 --expose-gc ./node_modules/jest/bin/jest --forceExit --reporters=jest-junit --reporters=default --coverage --coverageReporters=cobertura --coverageReporters=html --coverageReporters=json",
|
|
19
|
+
"test:imports": "node --max-old-space-size=8192 --expose-gc ./node_modules/jest/bin/jest importResolver.test --forceExit --runInBand"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@yarnpkg/fslib": "2.10.4",
|
|
@@ -25,32 +25,32 @@
|
|
|
25
25
|
"chokidar": "^3.6.0",
|
|
26
26
|
"command-line-args": "^5.2.1",
|
|
27
27
|
"jsonc-parser": "^3.3.1",
|
|
28
|
-
"smol-toml": "^1.
|
|
28
|
+
"smol-toml": "^1.4.2",
|
|
29
29
|
"source-map-support": "^0.5.21",
|
|
30
|
-
"tmp": "^0.2.
|
|
31
|
-
"vscode-jsonrpc": "^9.0.0-next.
|
|
32
|
-
"vscode-languageserver": "^10.0.0-next.
|
|
33
|
-
"vscode-languageserver-protocol": "^3.17.6-next.
|
|
30
|
+
"tmp": "^0.2.5",
|
|
31
|
+
"vscode-jsonrpc": "^9.0.0-next.8",
|
|
32
|
+
"vscode-languageserver": "^10.0.0-next.13",
|
|
33
|
+
"vscode-languageserver-protocol": "^3.17.6-next.13",
|
|
34
34
|
"vscode-languageserver-textdocument": "^1.0.11",
|
|
35
35
|
"vscode-languageserver-types": "^3.17.6-next.5",
|
|
36
|
-
"vscode-uri": "^3.0
|
|
36
|
+
"vscode-uri": "^3.1.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/command-line-args": "^5.2.3",
|
|
40
40
|
"@types/fs-extra": "^11.0.4",
|
|
41
|
-
"@types/jest": "^
|
|
42
|
-
"@types/lodash": "^4.17.
|
|
43
|
-
"@types/node": "^22.
|
|
41
|
+
"@types/jest": "^30.0.0",
|
|
42
|
+
"@types/lodash": "^4.17.20",
|
|
43
|
+
"@types/node": "^22.18.12",
|
|
44
44
|
"@types/tmp": "^0.2.6",
|
|
45
|
-
"copy-webpack-plugin": "^
|
|
46
|
-
"esbuild-loader": "^
|
|
47
|
-
"jest": "^
|
|
45
|
+
"copy-webpack-plugin": "^12.0.2",
|
|
46
|
+
"esbuild-loader": "^4.4.0",
|
|
47
|
+
"jest": "^30.2.0",
|
|
48
48
|
"jest-junit": "^16.0.0",
|
|
49
|
-
"shx": "^0.
|
|
50
|
-
"ts-jest": "^29.
|
|
51
|
-
"ts-loader": "^9.5.
|
|
49
|
+
"shx": "^0.4.0",
|
|
50
|
+
"ts-jest": "^29.4.5",
|
|
51
|
+
"ts-loader": "^9.5.4",
|
|
52
52
|
"typescript": "~5.5.4",
|
|
53
|
-
"webpack": "^5.
|
|
53
|
+
"webpack": "^5.102.1",
|
|
54
54
|
"webpack-cli": "^5.1.4",
|
|
55
55
|
"word-wrap": "1.2.5"
|
|
56
56
|
},
|