converter
type in attrs not correctly passed on to __init__
#7713
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
regression
Describe the bug
In pyright 1.1.358, the generated
__init__
types for attrs-wrapped classes no longer respect functions or constructors provided to theconverter
argument ofattrs.field
. The now-expected type seems to vary depending on the converter, I haven't found an exact pattern. Simple converters likestr
seem to work fine.Code or Screenshots
VS Code extension or command-line
Just the command-line, this version is not yet shipped with pylance.
The text was updated successfully, but these errors were encountered: