Commit 0b5130b
committed
STYLE: Remove
Remove `ClassVar[dict]` type hinting from GPR parameter constraints
variable and define it as a normal dictionary.
Fixes:
```
Cannot override instance variable '_parameter_constraints'
(previously declared on base class 'GaussianProcessRegressor') with class variable
```
As `_param_constraints` is an instance variable in `scikit-learn`:
https://github.com/scikit-learn/scikit-learn/blob/1.6.X/sklearn/gaussian_process/_gpr.py#L189ClassVar[dict] type hinting from GPR param constraints1 parent bd7ffd7 commit 0b5130b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
0 commit comments