Skip to content

Commit

Permalink
parameters: fix type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
hartytp authored and dnadlinger committed Nov 28, 2024
1 parent 5c35b3a commit dc11557
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ndscan/experiment/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
from artiq.language import host_only, portable, units
from enum import Enum
from numpy import int32
from typing import Any
from typing import Any, TYPE_CHECKING
from ..utils import eval_param_default, GetDataset

__all__ = ["FloatParam", "IntParam", "StringParam", "BoolParam", "EnumParam"]

if TYPE_CHECKING:
from .fragment import Fragment


class InvalidDefaultError(ValueError):
"""Raised when a default value is outside the specified range of valid parameter
Expand Down

0 comments on commit dc11557

Please sign in to comment.