Skip to content

Commit 58e55c8

Browse files
committed
Made PVValue a string
1 parent bd6972a commit 58e55c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/genie_python/genie_epics_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ def get_block_units(self, block_name: str) -> str | None:
617617

618618
def _get_pars(
619619
self, pv_prefix_identifier: str, get_names_from_blockserver: Callable[[], Any]
620-
) -> dict[str, PVValue]:
620+
) -> dict[str, "PVValue"]:
621621
"""
622622
Get the current parameter values for a given pv subset as a dictionary.
623623
"""
@@ -639,7 +639,7 @@ def _get_pars(
639639
)
640640
return ans
641641

642-
def get_sample_pars(self) -> dict[str, PVValue]:
642+
def get_sample_pars(self) -> dict[str, "PVValue"]:
643643
"""
644644
Get the current sample parameter values as a dictionary.
645645
"""
@@ -669,7 +669,7 @@ def set_sample_par(self, name: str, value: "PVValue") -> None:
669669
return
670670
raise Exception("Sample parameter %s does not exist" % name)
671671

672-
def get_beamline_pars(self) -> dict[str, PVValue]:
672+
def get_beamline_pars(self) -> dict[str, "PVValue"]:
673673
"""
674674
Get the current beamline parameter values as a dictionary.
675675
"""
@@ -694,7 +694,7 @@ def set_beamline_par(self, name: str, value: "PVValue") -> None:
694694
return
695695
raise Exception("Beamline parameter %s does not exist" % name)
696696

697-
def get_runcontrol_settings(self, block_name: str) -> tuple[PVValue, PVValue, PVValue]:
697+
def get_runcontrol_settings(self, block_name: str) -> tuple["PVValue", "PVValue", "PVValue"]:
698698
"""
699699
Gets the current run-control settings for a block.
700700
@@ -898,7 +898,7 @@ def get_pv_alarm(self, pv_name: str) -> str:
898898
except Exception:
899899
return "UNKNOWN"
900900

901-
def get_block_data(self, block: str, fail_fast: bool = False) -> dict[str, PVValue]:
901+
def get_block_data(self, block: str, fail_fast: bool = False) -> dict[str, "PVValue"]:
902902
"""
903903
Gets the useful values associated with a block.
904904

0 commit comments

Comments
 (0)