mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-27 18:45:05 +08:00
🚨 make pyright happy (#2486)
This commit is contained in:
parent
fa3bb96417
commit
50c03b0675
@ -35,9 +35,9 @@ def combine_driver(
|
||||
|
||||
def type_(self: "CombinedDriver") -> str:
|
||||
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(
|
||||
|
@ -313,7 +313,7 @@ class Matcher(metaclass=MatcherMeta):
|
||||
|
||||
matchers[priority].append(NewMatcher)
|
||||
|
||||
return NewMatcher
|
||||
return NewMatcher # type: ignore
|
||||
|
||||
@classmethod
|
||||
def destroy(cls) -> None:
|
||||
|
@ -7620,9 +7620,9 @@ pure-color@^1.2.0:
|
||||
integrity sha512-QFADYnsVoBMw1srW7OVKEYjG+MbIa49s54w1MA1EDY6r2r/sTcKKYqRX1f4GYvnXP7eN/Pe9HFcX+hwzmrXRHA==
|
||||
|
||||
pyright@^1.1.317:
|
||||
version "1.1.329"
|
||||
resolved "https://registry.npmjs.org/pyright/-/pyright-1.1.329.tgz#f4c0e0e854eb2264282cc75b9acd392718982c82"
|
||||
integrity sha512-5AT98Mi0OYcDiQ5lD1nPJ3cq8gX/HHaXrQ5WjJ/QZkaJtGqnEdrUp5Gq5wBPipWgOnv/l5e50YScaaNDMjoy9Q==
|
||||
version "1.1.339"
|
||||
resolved "https://registry.npmjs.org/pyright/-/pyright-1.1.339.tgz#a54f935f683f0f9c892f2776465e431e43ddaf89"
|
||||
integrity sha512-YHa58uKBcBal5E35DMWhHnHDoaH0OHoM90VvV+CYus4Z7pTPKFWLgl+mfH3ufmgOzxkmvW0LM0hmDOJaYJYfcA==
|
||||
optionalDependencies:
|
||||
fsevents "~2.3.2"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user