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

Avoid using Any in BaseSettings signature to avoid mypy errors #529

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Viicos
Copy link
Member

@Viicos Viicos commented Jan 24, 2025

When --disallow-any-explicit, this raises a mypy error when using the plugin (which synthesizes the __init__ method).

Also use PEP 570 positional only argument for self.

Fixes pydantic/pydantic#11313.

When `--disallow-any-explicit`, this raises a mypy error
when using the plugin (which synthesizes the `__init__` method).

Also use PEP 570 positional only argument for `self`.
@Viicos Viicos requested a review from sydney-runkle January 24, 2025 10:44
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 "Explicit "Any" is not allowed" error when extending "BaseSettings"
1 participant