10 tests fail
========================================================================================= FAILURES ==========================================================================================
_________________________________________________________________________________________ setup.py __________________________________________________________________________________________
[gw0] freebsd14 -- Python 3.11.9 /usr/local/bin/python3.11
16: error: Item "None" of "Match[str] | None" has no attribute "group" [union-attr]
17: error: Item "None" of "Match[str] | None" has no attribute "group" [union-attr]
18: error: Item "None" of "Match[str] | None" has no attribute "group" [union-attr]
19: error: Item "None" of "Match[str] | None" has no attribute "group" [union-attr]
____________________________________________________________________________ trainstation/ensemble_optimizer.py _____________________________________________________________________________
[gw2] freebsd14 -- Python 3.11.9 /usr/local/bin/python3.11
106: error: Argument "train_set" to "Optimizer" has incompatible type "ndarray[Any, Any]"; expected "tuple[int] | list[int]" [arg-type]
106: error: Argument "test_set" to "Optimizer" has incompatible type "ndarray[Any, dtype[Any]]"; expected "tuple[int] | list[int]" [arg-type]
113: error: Incompatible types in assignment (expression has type "list[Model]", variable has type "None") [assignment]
114: error: Incompatible types in assignment (expression has type "list[list[int]]", variable has type "None") [assignment]
115: error: Incompatible types in assignment (expression has type "list[list[int]]", variable has type "None") [assignment]
144: error: "list[ndarray[Any, Any]]" has no attribute "T" [attr-defined]
188: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment]
189: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment]
190: error: Incompatible types in assignment (expression has type "bool", target has type "str") [assignment]
191: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment]
200: error: Incompatible return value type (got "None", expected "ndarray[Any, Any]") [return-value]
207: error: Incompatible return value type (got "None", expected "list[ndarray[Any, Any]]") [return-value]
219: error: Incompatible return value type (got "None", expected "float") [return-value]
226: error: Incompatible return value type (got "None", expected "ndarray[Any, Any]") [return-value]
233: error: Incompatible return value type (got "None", expected "float") [return-value]
240: error: Incompatible return value type (got "None", expected "ndarray[Any, Any]") [return-value]
___________________________________________________________________________________ trainstation/tools.py ___________________________________________________________________________________
[gw2] freebsd14 -- Python 3.11.9 /usr/local/bin/python3.11
47: error: Self argument missing for a non-static method (or an invalid type for self) [misc]
_______________________________________________________________________________ trainstation/split_bregman.py _______________________________________________________________________________
[gw2] freebsd14 -- Python 3.11.9 /usr/local/bin/python3.11
16: error: Skipping analyzing "scipy.linalg": module is installed, but missing library stubs or py.typed marker [import-untyped]
16: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
16: error: Skipping analyzing "scipy": module is installed, but missing library stubs or py.typed marker [import-untyped]
95: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[floating[Any]]]", variable has type "float | list[float] | None") [assignment]
98: error: Argument 8 to "_split_bregman" has incompatible type "int | None"; expected "int" [arg-type]
105: error: Item "None" of "list[float] | None" has no attribute "__iter__" (not iterable) [union-attr]
119: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "list[list[float | Any]]") [assignment]
120: error: No overload variant of "__getitem__" of "list" matches argument type "tuple[slice, int]" [call-overload]
120: note: Possible overload variants:
120: note: def __getitem__(self, SupportsIndex, /) -> list[float | Any]
120: note: def __getitem__(self, slice, /) -> list[list[float | Any]]
121: error: No overload variant of "__getitem__" of "list" matches argument type "tuple[Any, int]" [call-overload]
121: note: Possible overload variants:
121: note: def __getitem__(self, SupportsIndex, /) -> list[float | Any]
121: note: def __getitem__(self, slice, /) -> list[list[float | Any]]
126: error: Argument 8 to "_split_bregman" has incompatible type "int | None"; expected "int" [arg-type]
212: error: Incompatible types in assignment (expression has type "floating[Any]", variable has type "float") [assignment]
_________________________________________________________________________________ trainstation/optimizer.py _________________________________________________________________________________
[gw3] freebsd14 -- Python 3.11.9 /usr/local/bin/python3.11
6: error: Skipping analyzing "sklearn.model_selection": module is installed, but missing library stubs or py.typed marker [import-untyped]
78: error: Incompatible default for argument "test_size" (default has type "None", argument has type "int | float") [assignment]
78: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
78: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
79: error: Incompatible default for argument "train_set" (default has type "None", argument has type "tuple[int] | list[int]") [assignment]
79: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
79: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
80: error: Incompatible default for argument "test_set" (default has type "None", argument has type "tuple[int] | list[int]") [assignment]
80: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
80: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
143: error: Incompatible types in assignment (expression has type "ndarray[Any, Any]", variable has type "tuple[int] | list[int] | None") [assignment]
145: error: Argument 1 to "len" has incompatible type "tuple[int] | list[int] | None"; expected "Sized" [arg-type]
149: error: Argument 1 to "intersect1d" has incompatible type "tuple[int] | list[int] | None"; expected "_SupportsArray[dtype[bool_]] | _NestedSequence[_SupportsArray[dtype[bool_]]]" [arg-type]
149: error: Argument 2 to "intersect1d" has incompatible type "tuple[int] | list[int]"; expected "_SupportsArray[dtype[bool_]] | _NestedSequence[_SupportsArray[dtype[bool_]]]" [arg-type]
166: error: Unsupported operand types for - ("None" and "float") [operator]
166: note: Left operand is of type "int | float | None"
170: error: Unsupported operand types for - ("None" and "float") [operator]
170: note: Left operand is of type "int | float | None"
173: error: Incompatible return value type (got "tuple[ndarray[Any, dtype[signedinteger[Any]]], None]", expected "tuple[list[int], list[int]]") [return-value]
181: error: Incompatible return value type (got "tuple[ndarray[Any, dtype[signedinteger[Any]]], Any]", expected "tuple[list[int], list[int]]") [return-value]
192: error: Unsupported right operand type for in ("tuple[int] | list[int] | None") [operator]
221: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment]
222: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment]
223: error: Incompatible types in assignment (expression has type "list[int]", target has type "str") [assignment]
224: error: Incompatible types in assignment (expression has type "list[int]", target has type "str") [assignment]
225: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment]
234: error: "Model" has no attribute "rmse_train" [attr-defined]
239: error: "Model" has no attribute "rmse_test" [attr-defined]
244: error: "Model" has no attribute "AIC" [attr-defined]
249: error: "Model" has no attribute "BIC" [attr-defined]
254: error: Incompatible return value type (got "tuple[int] | list[int] | None", expected "list[int]") [return-value]
259: error: Incompatible return value type (got "tuple[int] | list[int] | None", expected "list[int]") [return-value]
________________________________________________________________________________ trainstation/fit_methods.py ________________________________________________________________________________
[gw2] freebsd14 -- Python 3.11.9 /usr/local/bin/python3.11
21: error: Skipping analyzing "sklearn.linear_model": module is installed, but missing library stubs or py.typed marker [import-untyped]
31: error: Skipping analyzing "sklearn.model_selection": module is installed, but missing library stubs or py.typed marker [import-untyped]
32: error: Skipping analyzing "sklearn.feature_selection": module is installed, but missing library stubs or py.typed marker [import-untyped]
33: error: Skipping analyzing "sklearn.preprocessing": module is installed, but missing library stubs or py.typed marker [import-untyped]
99: error: Cannot call function of unknown type [operator]
112: error: Cannot call function of unknown type [operator]
137: error: Incompatible default for argument "reg_matrix" (default has type "None", argument has type "ndarray[Any, Any]") [assignment]
137: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
137: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
172: error: Incompatible default for argument "alpha" (default has type "None", argument has type "float") [assignment]
172: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
172: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
209: error: Incompatible default for argument "alphas" (default has type "None", argument has type "list[float]") [assignment]
209: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
209: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
309: error: Incompatible default for argument "alphas" (default has type "None", argument has type "list[float]") [assignment]
309: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
309: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
343: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "list[list[float]]") [assignment]
344: error: No overload variant of "__getitem__" of "list" matches argument type "tuple[slice, int]" [call-overload]
344: note: Possible overload variants:
344: note: def __getitem__(self, SupportsIndex, /) -> list[float]
344: note: def __getitem__(self, slice, /) -> list[list[float]]
345: error: No overload variant of "__getitem__" of "list" matches argument type "tuple[Any, int]" [call-overload]
345: note: Possible overload variants:
345: note: def __getitem__(self, SupportsIndex, /) -> list[float]
345: note: def __getitem__(self, slice, /) -> list[list[float]]
393: error: Incompatible default for argument "alpha" (default has type "None", argument has type "float") [assignment]
393: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
393: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
426: error: Incompatible default for argument "alphas" (default has type "None", argument has type "list[float]") [assignment]
426: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
426: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
427: error: Incompatible default for argument "l1_ratio" (default has type "None", argument has type "float | list[float]") [assignment]
427: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
427: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
483: error: Incompatible default for argument "threshold_lambda" (default has type "None", argument has type "float") [assignment]
483: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
483: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
528: error: Incompatible default for argument "threshold_lambdas" (default has type "None", argument has type "list[float]") [assignment]
528: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
528: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
560: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "list[list[float]]") [assignment]
561: error: No overload variant of "__getitem__" of "list" matches argument type "tuple[slice, int]" [call-overload]
561: note: Possible overload variants:
561: note: def __getitem__(self, SupportsIndex, /) -> list[float]
561: note: def __getitem__(self, slice, /) -> list[list[float]]
562: error: No overload variant of "__getitem__" of "list" matches argument type "tuple[Any, int]" [call-overload]
562: note: Possible overload variants:
562: note: def __getitem__(self, SupportsIndex, /) -> list[float]
562: note: def __getitem__(self, slice, /) -> list[list[float]]
595: error: Skipping analyzing "sklearn.base": module is installed, but missing library stubs or py.typed marker [import-untyped]
601: error: Incompatible default for argument "n_features" (default has type "None", argument has type "int") [assignment]
601: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
601: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
604: error: Incompatible default for argument "final_estimator" (default has type "None", argument has type "str") [assignment]
604: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
604: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
674: error: Incompatible default for argument "n_nonzero_coefs" (default has type "None", argument has type "int") [assignment]
674: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
674: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
_____________________________________________________________________________ trainstation/cross_validation.py ______________________________________________________________________________
[gw3] freebsd14 -- Python 3.11.9 /usr/local/bin/python3.11
6: error: Skipping analyzing "sklearn.model_selection": module is installed, but missing library stubs or py.typed marker [import-untyped]
115: error: Incompatible types in assignment (expression has type "ScatterData", variable has type "None") [assignment]
116: error: Incompatible types in assignment (expression has type "ScatterData", variable has type "None") [assignment]
117: error: Incompatible types in assignment (expression has type "list[Never]", variable has type "None") [assignment]
126: error: "None" has no attribute "append" [attr-defined]
128: error: Unsupported left operand type for + ("None") [operator]
128: note: Right operand is of type "ScatterData | None"
129: error: Unsupported left operand type for + ("None") [operator]
129: note: Right operand is of type "ScatterData | None"
182: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment]
183: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment]
184: error: Unpacked dict entry 2 has incompatible type "dict[str, bool]"; expected "SupportsKeysAndGetItem[str, str]" [dict-item]
202: error: Incompatible return value type (got "None", expected "ndarray[Any, Any]") [return-value]
210: error: Incompatible return value type (got "None", expected "ndarray[Any, Any]") [return-value]
220: error: "Model" has no attribute "rmse_train" [attr-defined]
226: error: Incompatible return value type (got "None", expected "float") [return-value]
234: error: Incompatible return value type (got "None", expected "ndarray[Any, Any]") [return-value]
242: error: Incompatible return value type (got "None", expected "float") [return-value]
250: error: Incompatible return value type (got "None", expected "float") [return-value]
258: error: Incompatible return value type (got "None", expected "ndarray[Any, Any]") [return-value]
265: error: "Model" has no attribute "AIC" [attr-defined]
270: error: "Model" has no attribute "BIC" [attr-defined]
______________________________________________________________________________ trainstation/base_optimizer.py _______________________________________________________________________________
[gw2] freebsd14 -- Python 3.11.9 /usr/local/bin/python3.11
158: error: Incompatible return value type (got "floating[Any]", expected "float") [return-value]
_______________________________________________________________________________________ test session ________________________________________________________________________________________
[gw0] freebsd14 -- Python 3.11.9 /usr/local/bin/python3.11
mypy exited with status 1.
___________________________________________________________________________________ trainstation/model.py ___________________________________________________________________________________
[gw1] freebsd14 -- Python 3.11.9 /usr/local/bin/python3.11
5: error: Skipping analyzing "sklearn.metrics": module is installed, but missing library stubs or py.typed marker [import-untyped]
46: error: Self argument missing for a non-static method (or an invalid type for self) [misc]
49: error: Incompatible default for argument "y_test" (default has type "None", argument has type "ndarray[Any, Any]") [assignment]
49: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
49: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
50: error: Incompatible default for argument "y_test_predicted" (default has type "None", argument has type "ndarray[Any, Any]") [assignment]
50: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True
50: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase
69: error: Incompatible types in assignment (expression has type "ndarray[Any, Any]", target has type "float") [assignment]
Version: 1.1
Python: 3.11
FreeBSD 14.1