Skip to content

Use proper stacklevel in warnings when possible#12342

Merged
Viicos merged 1 commit intomainfrom
stacklevel-fixes-2
Oct 7, 2025
Merged

Use proper stacklevel in warnings when possible#12342
Viicos merged 1 commit intomainfrom
stacklevel-fixes-2

Conversation

@Viicos
Copy link
Copy Markdown
Member

@Viicos Viicos commented Oct 7, 2025

Change Summary

Fixes #7908.

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-actions github-actions Bot added the relnotes-fix Used for bugfixes. label Oct 7, 2025
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0f5e6c1
Status: ✅  Deploy successful!
Preview URL: https://c846369a.pydantic-docs.pages.dev
Branch Preview URL: https://stacklevel-fixes-2.pydantic-docs.pages.dev

View logs

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 7, 2025

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  pydantic
  __init__.py 424-426
  _migration.py
  fields.py
  mypy.py
  pydantic/_internal
  _fields.py
  _model_construction.py
  pydantic/plugin
  _loader.py 49-50
Project Total  

This report was generated by python-coverage-comment-action

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Oct 7, 2025

CodSpeed Performance Report

Merging #12342 will not alter performance

Comparing stacklevel-fixes-2 (0f5e6c1) with main (3f59a03)

Summary

✅ 46 untouched

@Viicos Viicos merged commit 1231eee into main Oct 7, 2025
110 of 114 checks passed
@Viicos Viicos deleted the stacklevel-fixes-2 branch October 7, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

relnotes-fix Used for bugfixes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing stacklevel to warnings.warn on deprecationwarnings

2 participants