Update to pyright 1.1.242

This commit is contained in:
Rapptz
2022-04-30 19:37:01 -04:00
parent 8be103d6bb
commit 5536ef1eea
7 changed files with 23 additions and 27 deletions

View File

@@ -711,12 +711,8 @@ class Command(Generic[GroupT, P, T]):
return False
if self.binding is not None:
try:
# Type checker does not like runtime attribute retrieval
check: Check = self.binding.interaction_check # type: ignore
except AttributeError:
pass
else:
check: Optional[Check] = getattr(self.binding, 'interaction_check', None)
if check:
ret = await maybe_coroutine(check, interaction)
if not ret:
return False