Skip to content

Commit

Permalink
remove list from type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
to24toro committed Oct 25, 2023
1 parent 2849168 commit 921126b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qiskit_dynamics/signals/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ class Signal:
def __init__(
self,
envelope: Union[Callable, ArrayLike],
carrier_freq: Union[List, ArrayLike] = 0.0,
phase: Union[List, ArrayLike] = 0.0,
carrier_freq: ArrayLike = 0.0,
phase: ArrayLike = 0.0,
name: Optional[str] = None,
):
"""
Expand Down Expand Up @@ -123,7 +123,7 @@ def carrier_freq(self) -> ArrayLike:
return self._carrier_freq

@carrier_freq.setter
def carrier_freq(self, carrier_freq: Union[List, ArrayLike]):
def carrier_freq(self, carrier_freq: ArrayLike):
"""Carrier frequency setter. List handling is to support subclasses storing a
list of frequencies."""
self._carrier_freq = unp.asarray(carrier_freq)
Expand All @@ -135,7 +135,7 @@ def phase(self) -> ArrayLike:
return self._phase

@phase.setter
def phase(self, phase: Union[List, ArrayLike]):
def phase(self, phase: ArrayLike):
"""Phase setter. List handling is to support subclasses storing a
list of phases."""
self._phase = unp.asarray(phase)
Expand Down

0 comments on commit 921126b

Please sign in to comment.