Skip to content

[Bug]: CS conversion does not support inheritance #752

@chaen

Description

@chaen

Search before creating an issue

  • I have searched existing issues and confirmed this is not a duplicate

Bug Description

When converting the CS, we apply type hints conversion (split by , if defined as list[str] for example).

However, when converting a class that has been inherited in an extension, we lose the information about the vanilla diracx class.

We see the problem in LHCb now that we have extended the UserConfig

Steps to Reproduce

No response

Expected Behavior

No response

Actual Behavior

No response

Environment

No response

Relevant Log Output

pydantic_core._pydantic_core.ValidationError: 624 validation errors for Config
Registry.lhcb.Users.6f672ba5-fb03-4495-aea2-6affde572b1d.Suspended
  Input should be a valid list [type=list_type, input_value='lhcb', input_type=str]

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions