Skip to content

Commit

Permalink
fix: Use isinstance(..., (type1, type2))
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Apr 19, 2024
1 parent 4cdb5b3 commit 9d66f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConfigSpace/read_and_write/pcs_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def read(pcs_string: Iterable[str]) -> ConfigurationSpace:

elif isinstance(
hp,
CategoricalHyperparameter | OrdinalHyperparameter,
(CategoricalHyperparameter, OrdinalHyperparameter),
):
hp_values = (
hp.choices
Expand Down

0 comments on commit 9d66f56

Please sign in to comment.