DiamondLightSource / DiamondLightSource/pythonSoftIOC
Provide stubs/annotations for RecordWrapper
Aperta
enhancement
- Lingua principale
- Python
- Stelle
- 46
- Fork
- 15
- Merge medio
- 1g 18h
- PR unite (30g)
- 1
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.