Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
HGSilveri committed Jun 6, 2024
1 parent 641374e commit fd4457d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulser-core/pulser/pulse.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def __eq__(self, other: Any) -> bool:
if type(other) is not type(self):
return False

def check_phase_eq(phase1: float, phase2: float) -> bool:
def check_phase_eq(phase1: float, phase2: float) -> np.bool_:
# Comparing with an offset ensures we don't fail just because
# we are very close to the wraping point
return np.isclose(phase1, phase2, atol=1e-6) or np.isclose(
Expand Down

0 comments on commit fd4457d

Please sign in to comment.