Skip to content

Commit

Permalink
Add static type hints checking (qiskit-community/qiskit-aqua#1020)
Browse files Browse the repository at this point in the history
* Add static type hints checking

* run mypy on python 3.5

* a few more type hint fixes

Co-authored-by: Julien Gacon <jules.gacon@googlemail.com>
  • Loading branch information
manoelmarques and Cryoris authored Jun 3, 2020
1 parent f1ec822 commit 24e1fe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit/aqua/components/variational_forms/variational_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self) -> None:
super().__init__()
self._num_parameters = 0
self._num_qubits = 0
self._bounds = list()
self._bounds = list() # type: List[object]
self._support_parameterized_circuit = False
pass

Expand Down Expand Up @@ -95,7 +95,7 @@ def num_qubits(self):
return self._num_qubits

@property
def parameter_bounds(self):
def parameter_bounds(self) -> List[object]:
"""Parameter bounds.
Returns:
Expand Down

0 comments on commit 24e1fe6

Please sign in to comment.