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

Fix: mypy error with Settings and SettingsConfigDict #7002

Merged

Conversation

JeanArhancet
Copy link
Contributor

@JeanArhancet JeanArhancet commented Aug 3, 2023

Change Summary

Fix mypy error with Settings and SettingsConfigDict

Related issue number

Fix #6985

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @davidhewitt

@JeanArhancet JeanArhancet marked this pull request as ready for review August 3, 2023 13:26
@JeanArhancet
Copy link
Contributor Author

please review

pydantic/mypy.py Outdated Show resolved Hide resolved
pydantic/mypy.py Outdated Show resolved Hide resolved
@hramezani
Copy link
Member

Thanks @JeanArhancet for the fix 🙏

This LGTM 👍

test fast-api is failing that will be fixed after #7014

@dmontagu it would be great if you also take a look

@martinky24
Copy link

I filed what is believed to be a version of this issue at python/mypy#15804, and after installing this branch it seems to fix the error. 👍

@hramezani
Copy link
Member

@JeanArhancet please rebase on top of main.

JeanArhancet and others added 4 commits August 7, 2023 20:23
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
Co-authored-by: Hasan Ramezani <hasan.r67@gmail.com>
Copy link
Contributor

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Had a quick chat with @dmontagu about this offline, LGTM. Many thanks 👍

@davidhewitt davidhewitt merged commit de85154 into pydantic:main Aug 9, 2023
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pydantic.mypy plugin error using pydantic_settings SettingsConfigDict
5 participants