dataclass definition: "data class fields without default value cannot appear after data fields with default values" #162
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
It being possible to define a dataclass using both uninitialized fields, and fields with a default value.
Actual behaviour
The below snippet has a dataclass field with a default value above fields with
init=False
.The definitions for the uninitialized fields generate a Pylance error.
Logs
https://termbin.com/15k2
Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: