Skip to content

Commit

Permalink
Push pylance changes to pyright (#9033)
Browse files Browse the repository at this point in the history
  • Loading branch information
StellaHuang95 authored Sep 18, 2024
1 parent c58d75c commit d0411a0
Show file tree
Hide file tree
Showing 16 changed files with 77 additions and 49 deletions.
2 changes: 1 addition & 1 deletion packages/pyright-internal/src/backgroundAnalysisBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export class BackgroundAnalysisBase {
// analyze, so queue another message to resume later.
this.enqueueRequest({
requestType: 'resumeAnalysis',
data: serialize(this._analysisCancellationToken),
data: serialize(this._analysisCancellationToken || CancellationToken.None),
});
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@
"unionUnpackedTypeVarTuple": "Union nemůže obsahovat rozbalený typ TypeVarTuple.",
"unnecessaryCast": "Nepotřebné volání „cast“; typ už je „{type}“.",
"unnecessaryIsInstanceAlways": "Zbytečné volání isinstance; {testType} je vždy instancí třídy {classType}",
"unnecessaryIsInstanceNever": "Unnecessary isinstance call; \"{testType}\" is never an instance of \"{classType}\"",
"unnecessaryIsSubclassAlways": "Nepotřebné volání issubclass; „{testType}“ je vždy podtřídou třídy „{classType}“",
"unnecessaryIsSubclassNever": "Unnecessary issubclass call; \"{testType}\" is never a subclass of \"{classType}\"",
"unnecessaryPyrightIgnore": "Nepotřebný komentář „# pyright: ignore“",
"unnecessaryPyrightIgnoreRule": "Nepotřebné pravidlo # pyright: ignore: {name}",
"unnecessaryTypeIgnore": "Nepotřebný komentář „# type: ignore“",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@
"unionUnpackedTypeVarTuple": "Die Union kann kein entpacktes TypeVarTuple enthalten.",
"unnecessaryCast": "Nicht erforderlicher \"cast\"-Aufruf; der Typ ist bereits \"{type}\".",
"unnecessaryIsInstanceAlways": "Nicht erforderlicher isinstance-Aufruf; \"{testType}\" ist immer eine Instanz von \"{classType}\"",
"unnecessaryIsInstanceNever": "Unnecessary isinstance call; \"{testType}\" is never an instance of \"{classType}\"",
"unnecessaryIsSubclassAlways": "Nicht erforderlicher issubclass-Aufruf; \"{testType}\" ist immer eine Unterklasse von \"{classType}\"",
"unnecessaryIsSubclassNever": "Unnecessary issubclass call; \"{testType}\" is never a subclass of \"{classType}\"",
"unnecessaryPyrightIgnore": "Unnötiger \"# pyright: ignore\"-Kommentar",
"unnecessaryPyrightIgnoreRule": "Unnötiger \"# pyright: ignore\"-Regel: \"{name}\"",
"unnecessaryTypeIgnore": "Nicht erforderlicher \"# type: ignore\"-Kommentar",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@
"unionUnpackedTypeVarTuple": "La Union no puede incluir un TypeVarTuple desempaquetado",
"unnecessaryCast": "Llamada \"cast\" innecesaria; el tipo ya es \"{type}\"",
"unnecessaryIsInstanceAlways": "Llamada isinstance innecesaria; \"{testType}\" es siempre una instancia de \"{classType}\"",
"unnecessaryIsInstanceNever": "Unnecessary isinstance call; \"{testType}\" is never an instance of \"{classType}\"",
"unnecessaryIsSubclassAlways": "Llamada de issubclass innecesaria; \"{testType}\" siempre es una subclase de \"{classType}\"",
"unnecessaryIsSubclassNever": "Unnecessary issubclass call; \"{testType}\" is never a subclass of \"{classType}\"",
"unnecessaryPyrightIgnore": "Comentario \"# pyright: ignore\" innecesario",
"unnecessaryPyrightIgnoreRule": "Regla innecesaria \"# pyright: ignore\": \"{name}\"",
"unnecessaryTypeIgnore": "Comentario \"# type: ignore\" innecesario",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@
"unionUnpackedTypeVarTuple": "Union ne peut pas inclure un TypeVarTuple décompressé",
"unnecessaryCast": "Appel \"cast\" inutile ; le type est déjà \"{type}\"",
"unnecessaryIsInstanceAlways": "Appel d’isinstance inutile ; « {testType} » est toujours une instance de « {classType} »",
"unnecessaryIsInstanceNever": "Unnecessary isinstance call; \"{testType}\" is never an instance of \"{classType}\"",
"unnecessaryIsSubclassAlways": "Appel issubclass inutile ; \"{testType}\" est toujours une sous-classe de \"{classType}\"",
"unnecessaryIsSubclassNever": "Unnecessary issubclass call; \"{testType}\" is never a subclass of \"{classType}\"",
"unnecessaryPyrightIgnore": "Commentaire \"# pyright: ignore\" inutile",
"unnecessaryPyrightIgnoreRule": "Règle inutile « # pyright: ignore » : « {name} »",
"unnecessaryTypeIgnore": "Commentaire \"# type: ignore\" inutile",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@
"unionUnpackedTypeVarTuple": "Union non può includere un TypeVarTuple non compresso",
"unnecessaryCast": "Chiamata \"cast\" non necessaria; il tipo è già \"{type}\"",
"unnecessaryIsInstanceAlways": "Chiamata isinstance non necessaria; \"{testType}\" è sempre un'istanza di \"{classType}\"",
"unnecessaryIsInstanceNever": "Unnecessary isinstance call; \"{testType}\" is never an instance of \"{classType}\"",
"unnecessaryIsSubclassAlways": "Chiamata issubclass non necessaria; \"{testType}\" è sempre una sottoclasse di \"{classType}\"",
"unnecessaryIsSubclassNever": "Unnecessary issubclass call; \"{testType}\" is never a subclass of \"{classType}\"",
"unnecessaryPyrightIgnore": "Commento \"# pyright: ignore\" non necessario",
"unnecessaryPyrightIgnoreRule": "Regola \"# pyright: ignore\" non necessaria: \"{name}\"",
"unnecessaryTypeIgnore": "Commento \"# type: ignore\" non necessario",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@
"unionUnpackedTypeVarTuple": "Union cannot include an unpacked TypeVarTuple",
"unnecessaryCast": "不要な \"cast\" 呼び出し。型は既に \"{type}\" です",
"unnecessaryIsInstanceAlways": "不要な isinstance 呼び出し。\"{testType}\" は常に \"{classType}\" のインスタンスです",
"unnecessaryIsInstanceNever": "Unnecessary isinstance call; \"{testType}\" is never an instance of \"{classType}\"",
"unnecessaryIsSubclassAlways": "不要な issubclass 呼び出し。\"{testType}\" は常に \"{classType}\" のサブクラスです",
"unnecessaryIsSubclassNever": "Unnecessary issubclass call; \"{testType}\" is never a subclass of \"{classType}\"",
"unnecessaryPyrightIgnore": "不要な \"# pyright: ignore\" コメント",
"unnecessaryPyrightIgnoreRule": "不要な \"# pyright: ignore\" ルール: \"{name}\"",
"unnecessaryTypeIgnore": "不要な \"# type: ignore\" コメント",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@
"unionUnpackedTypeVarTuple": "Union은 압축을 푼 TypeVarTuple을 포함할 수 없습니다.",
"unnecessaryCast": "불필요한 \"cast\" 호출입니다. 형식이 이미 “{type}“입니다.",
"unnecessaryIsInstanceAlways": "불필요한 isinstance 호출입니다. \"{testType}\"은(는) 항상 \"{classType}\"의 인스턴스입니다.",
"unnecessaryIsInstanceNever": "Unnecessary isinstance call; \"{testType}\" is never an instance of \"{classType}\"",
"unnecessaryIsSubclassAlways": "불필요한 issubclass 호출입니다. ’{testType}‘은(는) 항상 ’{classType}‘의 하위 클래스입니다.",
"unnecessaryIsSubclassNever": "Unnecessary issubclass call; \"{testType}\" is never a subclass of \"{classType}\"",
"unnecessaryPyrightIgnore": "불필요한 \"# pyright: ignore\" 메모입니다.",
"unnecessaryPyrightIgnoreRule": "불필요한 \"# pyright: ignore\" 규칙: \"{name}\"",
"unnecessaryTypeIgnore": "불필요한 \"# type: ignore\" 메모입니다.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@
"unionUnpackedTypeVarTuple": "Typ Union nie może zawierać niespakowanego parametru TypeVarTuple",
"unnecessaryCast": "Niepotrzebne wywołanie „cast”; typ jest już „{type}”",
"unnecessaryIsInstanceAlways": "Niepotrzebne wywołanie elementu isinstance; „{testType}” jest zawsze wystąpieniem „{classType}”",
"unnecessaryIsInstanceNever": "Unnecessary isinstance call; \"{testType}\" is never an instance of \"{classType}\"",
"unnecessaryIsSubclassAlways": "Niepotrzebne wywołanie „issubclass”; „{testType}” jest zawsze podklasą klasy „{classType}”",
"unnecessaryIsSubclassNever": "Unnecessary issubclass call; \"{testType}\" is never a subclass of \"{classType}\"",
"unnecessaryPyrightIgnore": "Niepotrzebny komentarz „# pyright: ignore”",
"unnecessaryPyrightIgnoreRule": "Niepotrzebna reguła „# pyright: ignore”: „{name}”",
"unnecessaryTypeIgnore": "Niepotrzebny komentarz „# type: ignore”",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@
"unionUnpackedTypeVarTuple": "A Union não pode incluir um TypeVarTuple desempacotado",
"unnecessaryCast": "Chamada \"cast\" desnecessária. O tipo já é \"{type}\"",
"unnecessaryIsInstanceAlways": "Chamada de isinstance desnecessária. \"{testType}\" é sempre uma instância de \"{classType}\"",
"unnecessaryIsInstanceNever": "Unnecessary isinstance call; \"{testType}\" is never an instance of \"{classType}\"",
"unnecessaryIsSubclassAlways": "Chamada issubclass desnecessária. \"{testType}\" é sempre uma subclasse de \"{classType}\"",
"unnecessaryIsSubclassNever": "Unnecessary issubclass call; \"{testType}\" is never a subclass of \"{classType}\"",
"unnecessaryPyrightIgnore": "Comentário desnecessário \"# pyright: ignore\"",
"unnecessaryPyrightIgnoreRule": "Regra desnecessária \"# pyright: ignore\": \"{name}\"",
"unnecessaryTypeIgnore": "Comentário \"# type: ignore\" desnecessário",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@
"unionUnpackedTypeVarTuple": "[a6msY][นั้Union çæññøt ïñçlµðë æñ µñpæçkëð TypeVarTupleẤğ倪İЂҰक्र्तिृまẤğ倪İนั้ढूँ]",
"unnecessaryCast": "[QgPoI][นั้Üññëçëssærÿ \"cast\" çæll; tÿpë ïs ælrëæðÿ \"{tÿpë}\"Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰนั้ढूँ]",
"unnecessaryIsInstanceAlways": "[gX4s7][นั้Üññëçëssærÿ isinstance çæll; \"{tëstTÿpë}\" ïs ælwæÿs æñ ïñstæñçë øf \"{çlæssTÿpë}\"Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İนั้ढूँ]",
"unnecessaryIsInstanceNever": "[60nSE][นั้Üññëçëssærÿ isinstance çæll; \"{tëstTÿpë}\" ïs ñëvër æñ ïñstæñçë øf \"{çlæssTÿpë}\"Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İนั้ढूँ]",
"unnecessaryIsSubclassAlways": "[BzHtx][นั้Üññëçëssærÿ issubclass çæll; \"{tëstTÿpë}\" ïs ælwæÿs æ sµþçlæss øf \"{çlæssTÿpë}\"Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İนั้ढूँ]",
"unnecessaryIsSubclassNever": "[bOMnf][นั้Üññëçëssærÿ issubclass çæll; \"{tëstTÿpë}\" ïs ñëvër æ sµþçlæss øf \"{çlæssTÿpë}\"Ấğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪นั้ढूँ]",
"unnecessaryPyrightIgnore": "[7QhdX][นั้Üññëçëssærÿ \"# pyright: ignore\" çømmëñtẤğ倪İЂҰक्र्तिृまẤğนั้ढूँ]",
"unnecessaryPyrightIgnoreRule": "[0ESoQ][นั้Üññëçëssærÿ \"# pyright: ignore\" rµlë: \"{ñæmë}\"Ấğ倪İЂҰक्र्तिृまẤğ倪İนั้ढूँ]",
"unnecessaryTypeIgnore": "[IoWr9][นั้Üññëçëssærÿ \"# type: ignore\" çømmëñtẤğ倪İЂҰक्र्तिृまนั้ढूँ]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@
"unionUnpackedTypeVarTuple": "Union не может включать распакованный TypeVarTuple",
"unnecessaryCast": "Ненужный вызов \"cast\"; тип уже является \"{type}\"",
"unnecessaryIsInstanceAlways": "Ненужный вызов isinstance; \"{testType}\" всегда является экземпляром \"{classType}\"",
"unnecessaryIsInstanceNever": "Unnecessary isinstance call; \"{testType}\" is never an instance of \"{classType}\"",
"unnecessaryIsSubclassAlways": "Ненужный вызов issubclass. \"{testType}\" всегда является подклассом \"{classType}\"",
"unnecessaryIsSubclassNever": "Unnecessary issubclass call; \"{testType}\" is never a subclass of \"{classType}\"",
"unnecessaryPyrightIgnore": "Ненужный комментарий \"# pyright: ignore\"",
"unnecessaryPyrightIgnoreRule": "Ненужное правило \"# pyright: ignore\": \"{name}\"",
"unnecessaryTypeIgnore": "Ненужный комментарий \"# type: ignore\"",
Expand Down
Loading

0 comments on commit d0411a0

Please sign in to comment.