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 21, 2024
1 parent 14c652b commit dc1cc7c
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 dc1cc7c

Please sign in to comment.