Skip to content

Conversation

@msMatix
Copy link

@msMatix msMatix commented Mar 9, 2024

The main problem was the pydantic version. I updated to the newest one (2.6.3). In that, there are some changes for the imports.

@msMatix msMatix marked this pull request as draft March 9, 2024 13:04
@msMatix msMatix marked this pull request as ready for review March 9, 2024 13:05
@msMatix
Copy link
Author

msMatix commented Mar 9, 2024

@Dimfred: Unfortunately, I cannot add a reviewer, that is why I mentioned you here.

@msMatix
Copy link
Author

msMatix commented Mar 9, 2024

@Dimfred : please check this if it is as intended:

@model_validator(mode="before")
    def parse_abis(cls, values):
        for k, v in values.items():
            if "_abi" in k or "_ABI" in k:
                values[k] = ABI_(v)
        return values

you have the following options in this mode

  • before
  • after
  • wrap
    see docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant