Missing __annotations__ on callables readers/writers
$ LimaCCDs bcu_simulator1_devel
-------> Received a DevFailed exception: DevFailed[
DevError[
desc = AttributeError: 'CallableReadEnum' object has no attribute '__annotations__'
origin = Traceback (most recent call last):
File "/users/blissadm/conda/miniconda/envs/lima_dev/lib/python3.9/site-packages/tango/device_class.py", line 669, in __DeviceClass__device_factory
device = self._new_device(deviceImplClass, klass, dev_name)
File "/users/blissadm/conda/miniconda/envs/lima_dev/lib/python3.9/site-packages/tango/device_class.py", line 648, in __DeviceClass__new_device
return klass(dev_class, dev_name)
File "/users/blissadm/conda/miniconda/envs/lima_dev/lib/python3.9/site-packages/Lima/Server/LimaCCDs.py", line 400, in __init__
self.init_device()
File "/users/blissadm/conda/miniconda/envs/lima_dev/lib/python3.9/site-packages/Lima/Core/Debug.py", line 64, in real_fn
return new_fn(*arg, **kw)
File "/users/blissadm/conda/miniconda/envs/lima_dev/lib/python3.9/site-packages/Lima/Server/LimaCCDs.py", line 734, in init_device
self.add_attribute(
File "/users/blissadm/conda/miniconda/envs/lima_dev/lib/python3.9/site-packages/tango/device_server.py", line 572, in __DeviceImpl__add_attribute
type_hint = dict(r_meth.__annotations__).get("return", None)
AttributeError: 'CallableReadEnum' object has no attribute '__annotations__'
reason = PyDs_PythonError
severity = ERR]
]
with
$ conda list pytango
# packages in environment at /users/blissadm/conda/miniconda/envs/lima_dev:
#
# Name Version Build Channel
pytango 9.5.0 py39hb1babde_1 conda-forge
Edited by Samuel Debionne