DiamondLightSource / DiamondLightSource/pythonSoftIOC

Provide stubs/annotations for RecordWrapper

Ouverte
#54 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
46
Forks
15
Merge moyen
1 j 18 h
PR mergées (30 j)
1

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.