Skip to content

Conversation

Viicos
Copy link
Member

@Viicos Viicos commented Oct 17, 2024

This typechecks the default and default_factory arguments, and removes the need for a custom mypy plugin hook.

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

This typechecks the `default` and `default_factory` arguments,
and removes the need for a custom mypy plugin hook.
@github-actions github-actions bot added the relnotes-fix Used for bugfixes. label Oct 17, 2024
@Viicos Viicos mentioned this pull request Oct 17, 2024
5 tasks
Copy link

cloudflare-workers-and-pages bot commented Oct 17, 2024

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 60e97ce
Status: ✅  Deploy successful!
Preview URL: https://3e80c252.pydantic-docs.pages.dev
Branch Preview URL: https://fields-func-overloads.pydantic-docs.pages.dev

View logs

Copy link

codspeed-hq bot commented Oct 17, 2024

CodSpeed Performance Report

Merging #10651 will not alter performance

Comparing fields-func-overloads (60e97ce) with main (0359a21)

Summary

✅ 44 untouched benchmarks

Copy link
Contributor

@sydney-runkle sydney-runkle left a comment

Choose a reason for hiding this comment

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

Nice work, much cleaner!

@sydney-runkle
Copy link
Contributor

Pending happy mypy, I'm good with this 👍

Copy link
Contributor

github-actions bot commented Oct 18, 2024

Coverage report

Click to see where and how coverage changed

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

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

@sydney-runkle
Copy link
Contributor

Update: disabled mypy tests bc they're being flaky. We will investigate before closing #10623

@Viicos Viicos merged commit 06a04b5 into main Oct 18, 2024
62 checks passed
@Viicos Viicos deleted the fields-func-overloads branch October 18, 2024 17:57
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