Commit f7a50e9
committed
ENH: Ignore
Ignore `scikit-learn` `Interval` and `StrOptions` type checking errors
to prevent `mypy` erroring with the argument that they are abstract
classes with the `__str__` abstract attribute.
Fixes:
```
src/nifreeze/model/gpr.py:161: error:
Cannot instantiate abstract class "Interval" with abstract attribute "__str__" [abstract]
src/nifreeze/model/gpr.py:162: error:
Cannot instantiate abstract class "StrOptions" with abstract attribute "__str__" [abstract]
src/nifreeze/model/gpr.py:163: error:
Cannot instantiate abstract class "Interval" with abstract attribute "__str__" [abstract]
src/nifreeze/model/gpr.py:166: error:
Cannot instantiate abstract class "Interval" with abstract attribute "__str__" [abstract]
```scikit-learn Interval and StrOptions type checking1 parent 0b5130b commit f7a50e9
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
163 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
0 commit comments