Skip to content

Approve functions used as default arguments #4699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
2 changes: 1 addition & 1 deletion other/linear_congruential_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class LinearCongruentialGenerator:
A pseudorandom number generator.
"""

def __init__(self, multiplier, increment, modulo, seed=int(time())):
def __init__(self, multiplier, increment, modulo, seed=int(time())): # noqa: B008
"""
These parameters are saved and used when nextNumber() is called.

Expand Down
4 changes: 3 additions & 1 deletion quantum/ripple_adder_classic.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def full_adder(


def ripple_adder(
val1: int, val2: int, backend: BaseBackend = Aer.get_backend("qasm_simulator")
val1: int,
val2: int,
backend: BaseBackend = Aer.get_backend("qasm_simulator"), # noqa: B008
) -> int:
"""
Quantum Equivalent of a Ripple Adder Circuit
Expand Down