Skip to content

Commit 311d321

Browse files
committed
removed unused paranspec, fixed two simulate_impl pyright errors github complained about
1 parent 8c7165c commit 311d321

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/genie_python/genie_advanced.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import contextlib
88
from datetime import UTC, datetime, timedelta
99
from time import sleep
10-
from typing import Any, Iterator, ParamSpec, Protocol, TypedDict
10+
from typing import Any, Iterator, Protocol, TypedDict
1111

1212
import numpy as np
1313
import numpy.typing as npt
@@ -21,8 +21,6 @@
2121
from genie_python.genie_waitfor import DELAY_IN_WAIT_FOR_SLEEP_LOOP
2222
from genie_python.utilities import check_break
2323

24-
P = ParamSpec("P")
25-
2624

2725
class PrePostCmd(Protocol):
2826
def __call__(self, **kwargs: Any) -> str | None:

src/genie_python/genie_simulate_impl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ def set_instrument(
10921092
) -> None:
10931093
self.inst_prefix = pv_prefix
10941094

1095-
def get_instrument(self) -> str:
1095+
def get_instrument(self) -> str | None:
10961096
return self.inst_prefix
10971097

10981098
def prefix_pv_name(self, name: str) -> str:
@@ -1196,7 +1196,7 @@ def get_block_data(self, block: str, fail_fast: bool = False) -> dict():
11961196
def get_pv_from_block(self, block_name: str) -> str:
11971197
return block_name
11981198

1199-
def set_multiple_blocks(self, names: list, values: list) -> None:
1199+
def set_multiple_blocks(self, names: list[str], values: list[PVValue]) -> None:
12001200
temp = list(zip(names, values))
12011201
for name, value in temp:
12021202
if name in self.block_dict:

0 commit comments

Comments
 (0)