Skip to content

Adding Desirability functions as objectives #1544

Adding Desirability functions as objectives

Adding Desirability functions as objectives #1544

Triggered via pull request January 20, 2025 15:39
Status Failure
Total duration 1m 20s
Artifacts

lint.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
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#L21
Cannot access member "name" for type "ndarray[Unknown, Unknown]"   Member "name" is unknown (reportGeneralTypeIssues)
lint: bofire/data_models/objectives/desirabilities.py#L22
Cannot access member "values" for type "ndarray[Unknown, Unknown]"   Member "values" is unknown (reportGeneralTypeIssues)
lint: bofire/data_models/objectives/desirabilities.py#L27
"name" is possibly unbound (reportUnboundVariable)
lint: bofire/utils/reduce.py#L161
Argument of type "float" cannot be assigned to parameter "coefficients" of type "List[float]" in function "from_greater_equal"   "float" is incompatible with "List[float]" (reportGeneralTypeIssues)
lint: bofire/utils/reduce.py#L178
Argument of type "float" cannot be assigned to parameter "coefficients" of type "List[float]" in function "from_greater_equal"   "float" is incompatible with "List[float]" (reportGeneralTypeIssues)
lint: bofire/utils/reduce.py#L341
Argument of type "float | Unknown" cannot be assigned to parameter "coefficients" of type "List[float]" in function "__init__"   Type "float | Unknown" cannot be assigned to type "List[float]"     "float" is incompatible with "List[float]" (reportGeneralTypeIssues)
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636