DiamondLightSource / DiamondLightSource/pythonSoftIOC

Provide stubs/annotations for RecordWrapper

Abierto
#54 1 comentario 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Python
Estrellas
46
Forks
15
Merge medio
1 d 18 h
PR fusionados (30 d)
1

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start by locating the RecordWrapper definition and review the linked mypy stubs guide. Identify the EPICS record attributes currently exposed there and add declarations for them; done means users can discover the accessible attributes and mypy can infer the values retrieved from the record.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
backend
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.