Skip to content

Commit

Permalink
Update test_annotations.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FasterSpeeding authored Oct 15, 2024
1 parent aace27b commit ff742eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,8 @@ def test_choices(
@tanjun.as_slash_command("command", "description")
async def callback(
ctx: tanjun.abc.Context,
nope: typing.Annotated[type_cls, annotations.Choices(choices), "default"], # pyright: ignore
boo: typing.Annotated[type_cls, annotations.Choices(choices), "be"] = typing.cast( # pyright: ignore
nope: typing.Annotated[type_cls, annotations.Choices(choices), "default"],
boo: typing.Annotated[type_cls, annotations.Choices(choices), "be"] = typing.cast(
"_ChoiceT", "hi"
),
): ...
Expand Down Expand Up @@ -790,7 +790,7 @@ def test_choices_and_mixed_values(
@tanjun.as_slash_command("command", "description")
async def callback(
ctx: tanjun.abc.Context,
nom: typing.Annotated[type_, annotations.Choices(choices), "description"], # pyright: ignore
nom: typing.Annotated[type_, annotations.Choices(choices), "description"],
) -> None: ...

with pytest.raises(
Expand Down

0 comments on commit ff742eb

Please sign in to comment.