Skip to content

Commit

Permalink
Fix lint after opflow deprecation (#1135)
Browse files Browse the repository at this point in the history
* Fix lint after opflow deprecation

* Copyright date
  • Loading branch information
woodsp-ibm authored Apr 20, 2023
1 parent 40d6c7b commit bc28e98
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021, 2022.
# (C) Copyright IBM 2021, 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 @@ -36,6 +36,7 @@ def register_length(self) -> int:

def __pow__(self, power):
if power == 0:
# pylint: disable=too-many-function-args
return self.__class__("I" * self.register_length)

return super().__pow__(power)
Expand Down

0 comments on commit bc28e98

Please sign in to comment.