dataclass_transform
alias does not work with python version 3.11
#3912
Labels
as designed
Not a bug, working as intended
Describe the bug
Pyright does not use the given alias for the synthesised
__init__
method ifpythonVersion
is set to3.11
.To Reproduce
With this
pyproject.toml
file:And the third party library used,
pydantic==1.10.2
.This is what pyright outputs:
It should be noted that I also encountered this error with
pythonVersion
being left unset in the config file.Expected behavior
Pyright should not error and the revealed type should be:
VS Code extension or command-line
Command-line,
v.1.1.269
.The text was updated successfully, but these errors were encountered: