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 bug when mypy plugin fail on construct method call #2767

Merged
merged 6 commits into from Sep 5, 2021

Conversation

uriyyo
Copy link
Contributor

@uriyyo uriyyo commented May 9, 2021

Fix mypy plugin bug

Fix bug when mypy plugin fails on construct method call for BaseSettings derived classes.

Related issue number

Closes #2753

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable
  • changes/<pull request or issue id>-<github username>.md file added describing change
    (see changes/README.md for details)
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@uriyyo
Copy link
Contributor Author

uriyyo commented May 9, 2021

please review

Copy link
Member

@PrettyWood PrettyWood left a comment

Choose a reason for hiding this comment

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

Please update

pydantic/env_settings.py Outdated Show resolved Hide resolved
@uriyyo
Copy link
Contributor Author

uriyyo commented Sep 5, 2021

@PrettyWood Could you review again?

Copy link
Member

@PrettyWood PrettyWood left a comment

Choose a reason for hiding this comment

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

Thanks 🙏

changes/2753-uriyyo.md Outdated Show resolved Hide resolved
Co-authored-by: Eric Jolibois <em.jolibois@gmail.com>
@PrettyWood PrettyWood merged commit 63e42db into pydantic:master Sep 5, 2021
jpribyl pushed a commit to liquet-ai/pydantic that referenced this pull request Oct 7, 2021
* Fix bug when mypy plugin fail on construct method call

* Update type annotation for __config__ field

* Remove type ignore

* Update changes/2753-uriyyo.md

Co-authored-by: Eric Jolibois <em.jolibois@gmail.com>

Co-authored-by: Eric Jolibois <em.jolibois@gmail.com>
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.

Mypy plugin nags about "Missing named argument __config__" on BaseSettings.construct()
3 participants