Skip to content

Commit bc071ca

Browse files
authored
Fix getter/setter type mismatch (#232)
1 parent 50d14b0 commit bc071ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiskit_algorithms/variational_algorithm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This code is part of a Qiskit project.
22
#
3-
# (C) Copyright IBM 2019, 2023.
3+
# (C) Copyright IBM 2019, 2025.
44
#
55
# This code is licensed under the Apache License, Version 2.0. You may
66
# obtain a copy of this license in the LICENSE.txt file in the root directory
@@ -91,7 +91,7 @@ def optimal_value(self) -> float | None:
9191
return self._optimal_value
9292

9393
@optimal_value.setter
94-
def optimal_value(self, value: int) -> None:
94+
def optimal_value(self, value: float) -> None:
9595
"""Sets optimal value"""
9696
self._optimal_value = value
9797

0 commit comments

Comments
 (0)