Skip to content

Commit

Permalink
improve type annotation and docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
hay-k committed May 14, 2024
1 parent 85fe8e4 commit 032b723
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/qibolab/channel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass
from typing import Union
from typing import Optional, Union

from .configs import *

Expand Down Expand Up @@ -37,8 +37,11 @@ class WithExternalTwpaPump:
definitions, in case the instrument does not have built-in oscillator
dedicated as TWPA pump and an external TWPA pump should be used."""

twpa_pump: str
"""The name of the oscillator instrument used as TWPA pump."""
twpa_pump: Optional[str]
"""The name of the oscillator instrument used as TWPA pump.
None, if the TWPA pump/TWPA is not installed in the setup.
"""


def external_config(channel: Channel) -> dict[str, str]:
Expand Down

0 comments on commit 032b723

Please sign in to comment.