DiamondLightSource / DiamondLightSource/pythonSoftIOC

Provide mechanism to get record type

未關閉
#52 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Python
星號
46
分支
15
平均合併
1 天 18 小時
30 天內合併 PR
1

描述

It would be convenient to have some method on a `RecordWrapper` that allows retrieving the record's type. For example, a `get_type()` record might return a string `ao`, to say that this record is an Analog Out type, or `bi` for Boolean In, etc.

This would allow users to query `RecordWrapper` instances dynamically to know what keyword arguments `set()` allows, for example.

貢獻指南

開啟貢獻指南

研究方向

Start by locating the RecordWrapper implementation and the set() handling it exposes. Trace how record types and accepted keyword arguments are represented, then define what get_type() should return for examples such as ao and bi. Done means callers can retrieve the record type reliably and the behavior is covered by tests.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
backend
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。