From 50c03b0675ba9598e2aacf1eae5ca8db25374dc6 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:03:59 +0800 Subject: [PATCH] :rotating_light: make pyright happy (#2486) --- nonebot/internal/driver/combine.py | 4 ++-- nonebot/internal/matcher/matcher.py | 2 +- yarn.lock | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nonebot/internal/driver/combine.py b/nonebot/internal/driver/combine.py index 3d4b2597..c879e22f 100644 --- a/nonebot/internal/driver/combine.py +++ b/nonebot/internal/driver/combine.py @@ -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( diff --git a/nonebot/internal/matcher/matcher.py b/nonebot/internal/matcher/matcher.py index c3518603..fac1edaf 100644 --- a/nonebot/internal/matcher/matcher.py +++ b/nonebot/internal/matcher/matcher.py @@ -313,7 +313,7 @@ class Matcher(metaclass=MatcherMeta): matchers[priority].append(NewMatcher) - return NewMatcher + return NewMatcher # type: ignore @classmethod def destroy(cls) -> None: diff --git a/yarn.lock b/yarn.lock index 29746924..4e750457 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"