Skip to content

Commit

Permalink
Fix mypy warnings (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
manoelmarques committed Jan 3, 2023
1 parent 17e2296 commit b59b007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit_optimization/problems/substitute_variables.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019, 2022.
# (C) Copyright IBM 2019, 2023.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
Expand Down Expand Up @@ -114,7 +114,7 @@ class _SubstituteVariables:
"""A class to substitute variables of an optimization problem with constants for other
variables"""

def __init__(self):
def __init__(self) -> None:
self._src: Optional[QuadraticProgram] = None
self._dst: Optional[QuadraticProgram] = None
self._subs: Dict[str, SubstitutionExpression] = {}
Expand Down

0 comments on commit b59b007

Please sign in to comment.