DiamondLightSource / DiamondLightSource/pythonSoftIOC

Provide stubs/annotations for RecordWrapper

Đang mở
#54 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
46
Fork
15
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
1

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.