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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mypy issues for odmantic 1.0.0 #391
Labels
bug
Something isn't working
Comments
Same issue here with pyright. https://github.com/art049/odmantic/blob/master/odmantic/model.py#L946 this line forces "Missing named argument "id" for "A" on type checkers |
Closed
Hey! Just wondering, why this fix wasn't in the latest release? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug
Following the odmantic 1.0.0 examples and trying to upgrade odmantic/pydantic to V2 , I can find several issues in mypy.
Errors explained as comments below.
Current Behavior
Environment
pydantic-core version: 2.14.5
pydantic-core build: profile=release pgo=true
install path: /home/sander/Projects/application.status.backend/.venv/lib/python3.9/site-packages/pydantic
python version: 3.9.18 (main, Aug 25 2023, 13:20:14) [GCC 11.4.0]
platform: Linux-5.15.133.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
related packages: mypy-1.7.1 typing_extensions-4.9.0 fastapi-0.105.0
The text was updated successfully, but these errors were encountered: