Keep names
attribute and objects
attribute of an ObjectSelector
in sync
#309
Labels
component: type/value stuff
system of parameter type/value checking, inheritnace, etc etc
status: discussion
Discussion. Not yet a specific feature/bug. Likely to result in multiple PRs/issues.
type-bug
Bug report
Milestone
Now that the
ObjectSelector
accepts a mapping as theobjects
argument of the constructor it would be nice to also allow theobjects
attribute of the class to be set with a mapping. Otherwise, if theobjects
attribute is changed after instantiation then thenames
attribute is out of sync. For example:One suggestion would be to make
objects
a property that has a setter:Then the behavior would be like I would expect:
The text was updated successfully, but these errors were encountered: