Skip to content

Commit

Permalink
avoid function name shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Oct 18, 2024
1 parent 9b9c6fa commit a893d16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion guppylang/prelude/quantum.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def cx(self: "qubit", target: "qubit") -> None:

@guppy
@no_type_check
def measure(self: "qubit" @owned) -> bool:
def measure(self: "qubit" @ owned) -> bool:
return measure(self)

@guppy
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_inout.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def main(i: qubit) -> None:
validate(module.compile())


def test_self(validate):
def test_self_qubit(validate):
module = GuppyModule("test")
module.load(qubit)

Expand Down

0 comments on commit a893d16

Please sign in to comment.