Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/update #1

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Feat/update #1

wants to merge 5 commits into from

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