8000 Prevent type error for exotic BaseModel/RootModel inheritance by dmontagu · Pull Request #9913 · pydantic/pydantic · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@dmontagu
Copy link
Contributor
@dmontagu dmontagu commented Jul 17, 2024

Closes #9861

@cloudflare-workers-and-pages
Copy link
cloudflare-workers-and-pages bot commented Jul 17, 2024

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1969b08
Status: ✅  Deploy successful!
Preview URL: https://41d003a8.pydantic-docs.pages.dev
Branch Preview URL: https://dmontagu-9861.pydantic-docs.pages.dev

View logs

@dmontagu
Copy link
Contributor Author

@Viicos I guess this is going to conflict with #9480 — but it seems that introduced the bug reported in #9861. I'll do a bit of digging..

@codspeed-hq
Copy link
codspeed-hq bot commented Jul 17, 2024

CodSpeed Performance Report

Merging #9913 will not alter performance

Comparing dmontagu/9861 (1969b08) with main (fc25478)

Summary

✅ 13 untouched benchmarks

@dmontagu
Copy link
Contributor Author
dmontagu commented Jul 17, 2024

Okay I think I may have found a "real" fix now. Still needs to add the test case from #9861 before merging, assuming this passes CI.

@github-actions
Copy link
Contributor

Coverage report

Click to see where and how coverage changed

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

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

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.

Thanks @dmontagu!

@sydney-runkle sydney-runkle merged commit 93ced97 into main Jul 18, 2024
@sydney-runkle sydney-runkle deleted the dmontagu/9861 branch July 18, 2024 17:37
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.

Mypy error: incompatible definition of model_construct() in multiple inheritance from BaseModel and RootModel

3 participants

0