Browse Source

[commands] Fix type annotations to use Union instead of |

pull/10109/head
Rapptz 3 years ago
committed by dolfies
parent
commit
76ce315a83
  1. 4
      discord/ext/commands/core.py

4
discord/ext/commands/core.py

@ -2358,8 +2358,8 @@ def cooldown(
def dynamic_cooldown(
cooldown: Callable[[Context], Cooldown | None],
type: BucketType | Callable[[Context], Any],
cooldown: Callable[[Context], Optional[Cooldown]],
type: Union[BucketType, Callable[[Context], Any]],
) -> Callable[[T], T]:
"""A decorator that adds a dynamic cooldown to a :class:`.Command`

Loading…
Cancel
Save