Commit 4b4caab
committed
ENH: Use
Use `ClassVar` for type hinting the `GaussianProcessRegressor`
`_parameter_constraints` class variable in child class.
Fixes:
```
src/nifreeze/model/gpr.py:156: error:
Cannot override class variable (previously declared on base class "GaussianProcessRegressor") with instance variable [misc]
```
raised for example in:
https://github.com/nipreps/nifreeze/actions/runs/12437972140/job/34728973936#step:8:71ClassVar for class variable type hinting1 parent ade884c commit 4b4caab
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 | | |
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments