builds
fails when used with attrs
classes containing private attributes
#3791
Labels
bug
something is clearly wrong here
Hi, I think I may have found a bug that occurs when using
builds
with automatic attribute inference fromattrs
-built classes that have required but "private" attributes. The bug is probably due to the fact that the name exposed via the constructor differs from the attribute name in these cases, sinceattrs
by default strips the leading underscore.Here a minimal example:
The error you get:
The text was updated successfully, but these errors were encountered: