You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have several things that use validate_parallel() to make sure things are compatible with a key property. I think it might make sense to make this a parent class with that validator built in, with properties specifying which field is the key, which are required, and which are optional (presumably with specifications for required and optional that don't have to be parallel, but confirm that those cases are used in ways that make sense).
In the child objects, we'd want to define those key/required/optional fields in a non-updatable way.
This mostly works. The only issue really is that prints should hide the things users can't mess with (and/or explain them):
I have several things that use
validate_parallel()
to make sure things are compatible with a key property. I think it might make sense to make this a parent class with that validator built in, with properties specifying which field is the key, which are required, and which are optional (presumably with specifications for required and optional that don't have to be parallel, but confirm that those cases are used in ways that make sense).In the child objects, we'd want to define those key/required/optional fields in a non-updatable way.
This mostly works. The only issue really is that prints should hide the things users can't mess with (and/or explain them):
The text was updated successfully, but these errors were encountered: