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

Enable pydantic v2 (GSI 448) #173

Merged
merged 5 commits into from
Oct 25, 2023
Merged

Conversation

TheByronHimes
Copy link
Member

Updates update_config_docs.py to attempt to import BaseSettings from pydantic_settings. Upon ImportError, it will import the class from vanilla pydantic.

As a side note, the readme's config parameter enumeration looks ugly now. Something must have changed with one of the underlying packages, so we should look into that.

KerstenBreuer
KerstenBreuer previously approved these changes Oct 25, 2023
Copy link
Contributor

@KerstenBreuer KerstenBreuer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, didn't understood that it was that simple.

scripts/update_config_docs.py Outdated Show resolved Hide resolved
@github-actions
Copy link

Pull Request Test Coverage Report for Build 6640636772

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 43.056%

Totals Coverage Status
Change from base Build 6628101867: 0.0%
Covered Lines: 31
Relevant Lines: 72

💛 - Coveralls

@TheByronHimes TheByronHimes merged commit 6683f19 into main Oct 25, 2023
6 checks passed
@TheByronHimes TheByronHimes deleted the feature/pydantic_v2_GSI-448 branch October 25, 2023 13:39
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.

3 participants