from __future__ import annotations converts all type annotations into strings. Pycord reads these type hints at runtime to determine the schema of slash commands, which makes it incompatible with __future__.annotations.
Rather than removing this import, we can just explicitly tell pycord the type for each option (via @option(name, type)) so that it doesn't need to be inferred.
from __future__ import annotations
converts all type annotations into strings. Pycord reads these type hints at runtime to determine the schema of slash commands, which makes it incompatible with__future__.annotations
.Rather than removing this import, we can just explicitly tell pycord the type for each option (via
@option(name, type)
) so that it doesn't need to be inferred.