Skip to content

Commit

Permalink
Remove type ignore for formfield (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaeppe authored Nov 16, 2023
1 parent 0063759 commit da69c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/choicefield/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def validate(self, value: Any, model_instance: M | None) -> None:

def formfield(self, *args: Any, **kwargs: Any) -> FormField:
kwargs.setdefault("choices_form_class", ChoiceFormField)
return super().formfield(*args, **kwargs) # type: ignore[no-any-return]
return super().formfield(*args, **kwargs)

def get_prep_value(self, value: Any) -> Any:
value = self.to_python(super().get_prep_value(value))
Expand Down

0 comments on commit da69c06

Please sign in to comment.