Skip to content

Commit 20be297

Browse files
authored
fix: fix option type parsing in option decorator (#986)
1 parent a8f076a commit 20be297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/client/models/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def decorator(coro: Callable[..., Awaitable]) -> Callable[..., Awaitable]:
257257

258258
param = parameters[-1 - len(coro._options)]
259259

260-
option_type = kwargs.get("type", param.annotation)
260+
option_type = kwargs.pop("type", param.annotation)
261261
name = kwargs.pop("name", param.name)
262262
if name != param.name:
263263
kwargs["converter"] = param.name

0 commit comments

Comments
 (0)