Skip to content

Commit

Permalink
fix: Extend type hints even for concatenation aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Sep 5, 2024
1 parent 8f9248e commit 1021273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qibolab/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ def concatenate(self, other: Iterable[_Element]) -> None:
_synchronize(self, PulseSequence(other).channels)
self.extend(other)

def __ior__(self, other: "PulseSequence") -> "PulseSequence":
def __ior__(self, other: Iterable[_Element]) -> "PulseSequence":
"""Juxtapose two sequences.
Alias to :meth:`concatenate`.
"""
self.concatenate(other)
return self

def __or__(self, other: "PulseSequence") -> "PulseSequence":
def __or__(self, other: Iterable[_Element]) -> "PulseSequence":
"""Juxtapose two sequences.
A copy is made, and no input is altered.
Expand Down

0 comments on commit 1021273

Please sign in to comment.