You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quite likely the List import from Typing clashes with the actual List class definition.
File "/builder/tests/integration/../integration/workflow/test_data/list.py", line 7, in <module>
from aidbox.resource.list import List
File "/builder/.venv/lib/python3.11/site-packages/aidbox/resource/list.py", line 11, in <module>
class List(DomainResource):
File "/builder/.venv/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 171, in __new__
set_model_fields(cls, bases, config_wrapper, types_namespace)
File "/builder/.venv/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 361, in set_model_fields
fields, class_vars = collect_model_fields(cls, bases, config_wrapper, types_namespace, typevars_map=typevars_map)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/builder/.venv/lib/python3.11/site-packages/pydantic/_internal/_fields.py", line 96, in collect_model_fields
type_hints = get_cls_type_hints_lenient(cls, types_namespace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/builder/.venv/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py", line 212, in get_cls_type_hints_lenient
hints[name] = eval_type_lenient(value, globalns, localns)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/builder/.venv/lib/python3.11/site-packages/pydantic/_internal/_typing_extra.py", line 224, in eval_type_lenient
return typing._eval_type(value, globalns, localns) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/typing.py", line 395, in _eval_type
return t._evaluate(globalns, localns, recursive_guard)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/typing.py", line 905, in _evaluate
eval(self.__forward_code__, globalns, localns),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 1, in <module>
File "/builder/.venv/lib/python3.11/site-packages/pydantic/main.py", line 589, in __class_getitem__
raise TypeError(f'{cls} cannot be parametrized because it does not inherit from typing.Generic')
TypeError: <class 'aidbox.resource.list.List'> cannot be parametrized because it does not inherit from typing.Generic
frompydanticimport*fromtypingimportOptional, List
......
classList(DomainResource):
.....
The text was updated successfully, but these errors were encountered:
Quite likely the List import from Typing clashes with the actual List class definition.
The text was updated successfully, but these errors were encountered: