Skip to content

Commit

Permalink
Temporarily disable type warnings about attrs.Converter
Browse files Browse the repository at this point in the history
The new feature is not yet supported by type checkers
  • Loading branch information
AdrianSosic committed Aug 7, 2024
1 parent f7a17a2 commit 9936e92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions baybe/parameters/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ class CategoricalParameter(DiscreteParameter):
# object variables
_values: tuple[str, ...] = field(
alias="values",
converter=Converter(nonstring_to_tuple, takes_self=True, takes_field=True),
validator=(
# FIXME[typing]: `attrs.Converter` is not yet supported by type checkers
converter=Converter(nonstring_to_tuple, takes_self=True, takes_field=True), # type: ignore
validator=( # type: ignore
min_len(2),
validate_unique_values,
deep_iterable(member_validator=(instance_of(str), min_len(1))),
Expand Down

0 comments on commit 9936e92

Please sign in to comment.