nsot
nsot copied to clipboard
Implement default values for Attributes
Somewhat similar mindset as #84, having attribute defaults is pretty important for required attributes. May have a handful and attributes that are required, but may have a sane default that should be used before yelling at the user.
First of all, I like this idea. I feel like this could be complicated to implement, but only because if multi=True is set on an Attribute, then it behaves as a list type, so the default value must also be a list type if multi=True.
Could the check that judges if value is compatible with multi not be re-used for default_value?
Yeah, probably.