Skip to content

I optimality criterion and nonlinear constraints defined by python function #1574

I optimality criterion and nonlinear constraints defined by python function

I optimality criterion and nonlinear constraints defined by python function #1574

Triggered via pull request January 30, 2025 17:52
@OsburgOsburg
synchronize #485
i_optimality
Status Failure
Total duration 1m 19s
Artifacts

lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: bofire/benchmarks/single.py#L537
Argument of type "float" cannot be assigned to parameter "values" of type "DiscreteVals" in function "__init__"   "float" is incompatible with "DiscreteVals" (reportGeneralTypeIssues)
lint: bofire/benchmarks/single.py#L538
Argument of type "float" cannot be assigned to parameter "values" of type "DiscreteVals" in function "__init__"   "float" is incompatible with "DiscreteVals" (reportGeneralTypeIssues)
lint: bofire/benchmarks/single.py#L554
Argument of type "float" cannot be assigned to parameter "values" of type "DiscreteVals" in function "__init__"   "float" is incompatible with "DiscreteVals" (reportGeneralTypeIssues)
lint: bofire/benchmarks/single.py#L555
Argument of type "float" cannot be assigned to parameter "values" of type "DiscreteVals" in function "__init__"   "float" is incompatible with "DiscreteVals" (reportGeneralTypeIssues)
lint: bofire/data_models/objectives/desirabilities.py#L43
Cannot access member "name" for type "ndarray[Unknown, Unknown]"   Member "name" is unknown (reportGeneralTypeIssues)
lint: bofire/data_models/objectives/desirabilities.py#L44
Cannot access member "values" for type "ndarray[Unknown, Unknown]"   Member "values" is unknown (reportGeneralTypeIssues)
lint: bofire/data_models/objectives/desirabilities.py#L49
"name" is possibly unbound (reportUnboundVariable)
lint: bofire/data_models/strategies/doe.py#L135
Illegal type annotation: variable not allowed unless it is a type alias (reportGeneralTypeIssues)
lint: bofire/data_models/strategies/doe.py#L57
Class declaration "DOptimalityCriterion" is obscured by a declaration of the same name (reportGeneralTypeIssues)
lint: bofire/data_models/strategies/doe.py#L61
Class declaration "EOptimalityCriterion" is obscured by a declaration of the same name (reportGeneralTypeIssues)