Skip to content

Commit 3345b7e

Browse files
committed
rest of pyright issues fixed
1 parent 27c651f commit 3345b7e

File tree

3 files changed

+275
-207
lines changed

3 files changed

+275
-207
lines changed

src/genie_python/genie.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import re
88
import sys
99
import types
10+
import typing
1011
from builtins import FileNotFoundError, str
1112
from io import open
1213
from typing import Any, Callable, TypedDict, Union
@@ -2182,8 +2183,8 @@ class _GetspectrumReturn(TypedDict):
21822183

21832184

21842185
class _GetspectrumReturnNumpy(TypedDict):
2185-
time: Union[npt.NDArray[float], None]
2186-
signal: Union[npt.NDArray[float], None]
2186+
time: Union[npt.NDArray[np.float64], None]
2187+
signal: Union[npt.NDArray[np.float64], None]
21872188
sum: None
21882189
mode: str
21892190

src/genie_python/genie_change_cache.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
22

33

44
class ChangeCache(object):
5+
wiring: None | str
6+
detector: None | str
7+
spectra: None | str
8+
mon_spect: None
9+
mon_from: None
10+
mon_to: None
11+
dae_sync: None | int
12+
tcb_file: None | str
13+
tcb_tables: list
14+
tcb_calculation_method: None | int
15+
smp_veto: None | int
16+
ts2_veto: None | int
17+
hz50_veto: None | int
18+
ext0_veto: None | int
19+
ext1_veto: None | int
20+
ext2_veto: None | int
21+
ext3_veto: None | int
22+
fermi_veto: None | int
23+
fermi_delay: None
24+
fermi_width: None
25+
periods_soft_num: None | float | int
26+
periods_type: None | int
27+
periods_src: None | int
28+
periods_file: None | str
29+
periods_seq: None | int
30+
periods_delay: None | int
31+
periods_settings: list
32+
533
def __init__(self):
634
self.wiring = None
735
self.detector = None

0 commit comments

Comments
 (0)