Skip to content

Commit

Permalink
🚨 make pyright happy
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu committed Dec 8, 2023
1 parent fa3bb96 commit d5b97c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions nonebot/internal/driver/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion nonebot/internal/matcher/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def new(

matchers[priority].append(NewMatcher)

return NewMatcher
return NewMatcher # type: ignore

@classmethod
def destroy(cls) -> None:
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit d5b97c9

Please sign in to comment.