|
|
@ -451,11 +451,11 @@ class Command(_BaseCommand, Generic[CogT, P, T]): |
|
|
|
self.require_var_positional: bool = kwargs.get('require_var_positional', False) |
|
|
|
self.ignore_extra: bool = kwargs.get('ignore_extra', True) |
|
|
|
self.cooldown_after_parsing: bool = kwargs.get('cooldown_after_parsing', False) |
|
|
|
self.cog: CogT = None |
|
|
|
self.cog: CogT = None # type: ignore # This breaks every other pyright release |
|
|
|
|
|
|
|
# bandaid for the fact that sometimes parent can be the bot instance |
|
|
|
parent: Optional[GroupMixin[Any]] = kwargs.get('parent') |
|
|
|
self.parent: Optional[GroupMixin[Any]] = parent if isinstance(parent, _BaseCommand) else None |
|
|
|
self.parent: Optional[GroupMixin[Any]] = parent if isinstance(parent, _BaseCommand) else None # type: ignore # Does not recognise mixin usage |
|
|
|
|
|
|
|
self._before_invoke: Optional[Hook] = None |
|
|
|
try: |
|
|
|