We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, current type annotation for AnyClassMethod is classmethod[Any] while the definition in typeshed has changed as you can see in https://github.com/python/typeshed/blob/main/stdlib/builtins.pyi#L131 This change has been introduced in typeshed a couple of weeks ago https://github.com/python/typeshed/pull/9771/files
Would it be possible to fix the type annotations in pydantic accordingly ?
This impact pyright, as it starts reporting "partially unknown" types (which it is right about)
No response
pydantic version: 1.10.2 pydantic compiled: False install path: /home/vscode/.local/lib/python3.11/site-packages/pydantic python version: 3.11.2 (main, Feb 9 2023, 20:14:21) [GCC 10.2.1 20210110] platform: Linux-5.15.49-linuxkit-aarch64-with-glibc2.31 optional deps. installed: ['dotenv', 'typing-extensions']
.dict()
.json()
construct()
The text was updated successfully, but these errors were encountered:
Still relevant for pydantic==1.10.7. We are unable to use the last few releases of pyright until this is resolved.
pydantic==1.10.7
Sorry, something went wrong.
AnyClassMethod
samuelcolvin
No branches or pull requests
Initial Checks
Description
Hello, current type annotation for AnyClassMethod is classmethod[Any] while the definition in typeshed has changed
as you can see in https://github.com/python/typeshed/blob/main/stdlib/builtins.pyi#L131
This change has been introduced in typeshed a couple of weeks ago https://github.com/python/typeshed/pull/9771/files
Would it be possible to fix the type annotations in pydantic accordingly ?
This impact pyright, as it starts reporting "partially unknown" types (which it is right about)
Example Code
No response
Python, Pydantic & OS Version
Affected Components
.dict()
and.json()
construct()
, pickling, private attributes, ORM modeThe text was updated successfully, but these errors were encountered: