Skip to content

Fix type annotations for some potentially generic GenerateSchema.match_type options#9961

Merged
sydney-runkle merged 1 commit intomainfrom
fix-match-type-annotations
Jul 24, 2024
Merged

Fix type annotations for some potentially generic GenerateSchema.match_type options#9961
sydney-runkle merged 1 commit intomainfrom
fix-match-type-annotations

Conversation

@sydney-runkle
Copy link
Copy Markdown
Contributor

In this branch, the various types aren't generic, so it's guaranteed that the functions called are going to return Any, so we might as well take that shortcut.

@sydney-runkle sydney-runkle added the relnotes-ignore Omit this PR from the release notes. label Jul 24, 2024
@github-actions github-actions Bot added the relnotes-fix Used for bugfixes. label Jul 24, 2024
@sydney-runkle sydney-runkle removed the relnotes-ignore Omit this PR from the release notes. label Jul 24, 2024
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9d5a2d1
Status: ✅  Deploy successful!
Preview URL: https://679501d5.pydantic-docs.pages.dev
Branch Preview URL: https://fix-match-type-annotations.pydantic-docs.pages.dev

View logs

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Jul 24, 2024

CodSpeed Performance Report

Merging #9961 will not alter performance

Comparing fix-match-type-annotations (9d5a2d1) with main (630cc56)

Summary

✅ 14 untouched benchmarks

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  pydantic/_internal
  _generate_schema.py
Project Total  

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

@sydney-runkle sydney-runkle merged commit 548c231 into main Jul 24, 2024
@sydney-runkle sydney-runkle deleted the fix-match-type-annotations branch July 24, 2024 19:12
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.

2 participants