🚨 make pyright happy (#2486)

This commit is contained in:
Ju4tCode 2023-12-08 15:03:59 +08:00 committed by GitHub
parent fa3bb96417
commit 50c03b0675
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -35,9 +35,9 @@ def combine_driver(
def type_(self: "CombinedDriver") -> str: def type_(self: "CombinedDriver") -> str:
return ( return (
driver.type.__get__(self) driver.type.__get__(self) # type: ignore
+ "+" + "+"
+ "+".join(x.type.__get__(self) for x in mixins) + "+".join(x.type.__get__(self) for x in mixins) # type: ignore
) )
return type( return type(

View File

@ -313,7 +313,7 @@ class Matcher(metaclass=MatcherMeta):
matchers[priority].append(NewMatcher) matchers[priority].append(NewMatcher)
return NewMatcher return NewMatcher # type: ignore
@classmethod @classmethod
def destroy(cls) -> None: def destroy(cls) -> None:

View File

@ -7620,9 +7620,9 @@ pure-color@^1.2.0:
integrity sha512-QFADYnsVoBMw1srW7OVKEYjG+MbIa49s54w1MA1EDY6r2r/sTcKKYqRX1f4GYvnXP7eN/Pe9HFcX+hwzmrXRHA== integrity sha512-QFADYnsVoBMw1srW7OVKEYjG+MbIa49s54w1MA1EDY6r2r/sTcKKYqRX1f4GYvnXP7eN/Pe9HFcX+hwzmrXRHA==
pyright@^1.1.317: pyright@^1.1.317:
version "1.1.329" version "1.1.339"
resolved "https://registry.npmjs.org/pyright/-/pyright-1.1.329.tgz#f4c0e0e854eb2264282cc75b9acd392718982c82" resolved "https://registry.npmjs.org/pyright/-/pyright-1.1.339.tgz#a54f935f683f0f9c892f2776465e431e43ddaf89"
integrity sha512-5AT98Mi0OYcDiQ5lD1nPJ3cq8gX/HHaXrQ5WjJ/QZkaJtGqnEdrUp5Gq5wBPipWgOnv/l5e50YScaaNDMjoy9Q== integrity sha512-YHa58uKBcBal5E35DMWhHnHDoaH0OHoM90VvV+CYus4Z7pTPKFWLgl+mfH3ufmgOzxkmvW0LM0hmDOJaYJYfcA==
optionalDependencies: optionalDependencies:
fsevents "~2.3.2" fsevents "~2.3.2"