ISISComputingGroup/genie
load_script type checking - allow `np` datatypes in `cset` / `PVValue`
开放
#59 创建于 2025年10月9日
good first issue
仓库指标
- 星标
- (1 个星标)
- PR 合并指标
- (平均合并 7天 10小时) (30 天内合并 3 个 PR)
描述
As a user on MERLIN I would like the following snippet to pass type checking:
import numpy as np
from genie_python import genie as g
def runscript():
for psi in np.arange(30,130,10):
g.cset("Rot", psi, lowlimit=psi-0.1, highlimit=psi+0.1, runcontrol=True)
It currently fails with:
E: Argument of type "signedinteger[Any]" cannot be assigned to parameter "args" of type "PVValue"
PVValue should also include np types
Acceptance criteria
- Above snippet passes type checking