Commit 3a33fda 1 parent 33b305d commit 3a33fda Copy full SHA for 3a33fda
File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
### Fixed
9
- - Parameter classes are now slotted due to ` cached_property ` attrs support
9
+ - Parameter and objective classes are now slotted due to ` cached_property ` attrs support
10
10
11
11
## [ 0.10.0] - 2024-08-02
12
12
### Breaking Changes
Original file line number Diff line number Diff line change 14
14
from baybe .serialization .mixin import SerialMixin
15
15
from baybe .targets .base import Target
16
16
17
- # TODO: Reactive slots in all classes once cached_property is supported:
18
- # https://github.com/python-attrs/attrs/issues/164
19
17
20
-
21
- @define (frozen = True , slots = False )
18
+ @define (frozen = True )
22
19
class Objective (ABC , SerialMixin ):
23
20
"""Abstract base class for all objectives."""
24
21
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def scalarize(
61
61
return func (values , weights = weights )
62
62
63
63
64
- @define (frozen = True , slots = False )
64
+ @define (frozen = True )
65
65
class DesirabilityObjective (Objective ):
66
66
"""An objective scalarizing multiple targets using desirability values."""
67
67
You can’t perform that action at this time.
0 commit comments