DiamondLightSource / DiamondLightSource/pythonSoftIOC
Provide mechanism to get record type
- Langage dominant
- Python
- Étoiles
- 46
- Forks
- 15
- Merge moyen
- 1 j 18 h
- PR mergées (30 j)
- 1
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- backend
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100