Skip to content

databroker v2.0 causes TypeError #336

@prjemian

Description

@prjemian

This code:

@pytest.fixture
def cat():
return databroker.temp().v2

triggers this exception in Py3.11 CI:

2024-05-23T17:36:41.4183877Z descriptor = <slot wrapper '__call__' of 'type' objects>
2024-05-23T17:36:41.4184587Z obj = <property object at 0x7f6832ff93f0>
2024-05-23T17:36:41.4184989Z 
2024-05-23T17:36:41.4185183Z     def _descriptor_get(descriptor, obj):
2024-05-23T17:36:41.4185749Z         if isclass(descriptor):
2024-05-23T17:36:41.4186242Z             return descriptor
2024-05-23T17:36:41.4186914Z         get = getattr(type(descriptor), '__get__', _sentinel)
2024-05-23T17:36:41.4187643Z         if get is _sentinel:
2024-05-23T17:36:41.4188104Z             return descriptor
2024-05-23T17:36:41.4188630Z >       return get(descriptor, obj, type(obj))
2024-05-23T17:36:41.4189711Z E       TypeError: descriptor '__call__' for 'type' objects doesn't apply to a 'property' object
2024-05-23T17:36:41.4190472Z 
2024-05-23T17:36:41.4191067Z ../../../micromamba/envs/hklpy-test-py-3.11/lib/python3.11/inspect.py:2432: TypeError
2024-05-23T17:36:41.4192165Z ______________ ERROR at setup of test_fourc_run_orientation_info _______________

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions