Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Change type ofAny when synthesizingBaseSettings.__init__ signature in the mypy plugin#11497

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Viicos merged 1 commit intomainfrommypy-explicit-any-settings
Feb 28, 2025

Conversation

Viicos
Copy link
Member

Fixes#11313 (a previous fix was issued in pydantic-settings, but caused a regression. Here is a more robust fix).

Change Summary

Related issue number

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

@github-actionsgithub-actionsbot added the relnotes-fixUsed for bugfixes. labelFeb 27, 2025
@cloudflare-workers-and-pagesCloudflare Workers and Pages
Copy link

cloudflare-workers-and-pagesbot commentedFeb 27, 2025
edited
Loading

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit:4cafa69
Status: ✅  Deploy successful!
Preview URL:https://eba60abb.pydantic-docs.pages.dev
Branch Preview URL:https://mypy-explicit-any-settings.pydantic-docs.pages.dev

View logs

@Viicos
Copy link
MemberAuthor

@dmontagu, I'm wondering if this could be used also more broadly, to solvethis issue, where we only documented a workaround.

@codspeed-hqCodSpeed HQ
Copy link

codspeed-hqbot commentedFeb 27, 2025
edited
Loading

CodSpeed Performance Report

Merging#11497 willnot alter performance

Comparingmypy-explicit-any-settings (4cafa69) withmain (acb0f10)

Summary

✅ 46 untouched benchmarks

@ViicosViicosforce-pushed themypy-explicit-any-settings branch from5429b09 to4cafa69CompareFebruary 27, 2025 10:51
@github-actionsGitHub Actions
Copy link
Contributor

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  pydantic
  mypy.py1166
Project Total 

This report was generated bypython-coverage-comment-action

@ViicosViicos merged commit98348d0 intomainFeb 28, 2025
58 checks passed
@ViicosViicos deleted the mypy-explicit-any-settings branchFebruary 28, 2025 17:01
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sydney-runklesydney-runklesydney-runkle approved these changes

Assignees
No one assigned
Labels
relnotes-fixUsed for bugfixes.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

mypy "Explicit "Any" is not allowed" error when extending "BaseSettings"
2 participants
@Viicos@sydney-runkle

[8]ページ先頭

©2009-2025 Movatter.jp