DiamondLightSource / DiamondLightSource/pythonSoftIOC

Provide stubs/annotations for RecordWrapper

未关闭
#54 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
46
派生
15
平均合并
1 天 18 小时
30 天内合并 PR
1

描述

Currently there's no way for a user to know what EPICS record attributes are accessible on a `RecordWrapper` without just trying to get the attribute - and only a small handful are accessible at the moment. This would also help static type checkers such as `mypy` to better reason about the values retrieved from the record.

A basic introduction to stubs can be found here: https://mypy.readthedocs.io/en/stable/stubs.html

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。