Subclassed DBEnum item is not equal to the super class item
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
I Introduced a base class (NewSpecificati
File "./lib/
TypeError: DBItem from wrong type, 'SpecificationD
I image the underlying issue here is that it is possible for the subclass to redefine the value of the super classes's item. I think this though may be a bug in lazr.enum. I think the items should be considered frozen. The guard in parse_set() could check if the enum is a sub class of the designated enum an verify the values are the same.