Improve Inventory.__repr__
(and DataObjXyz.__repr__
?) completeness
#203
Labels
area: api 🤖
issue: planned ⌚
Assigned to a specific version's milestone
type: enhancement ✨
Something to add
Milestone
Is your feature request related to a problem? Please describe.
Per the Python docs, if possible
__repr__()
should provide a representation that can be used to recreate the object. Right now, I'm pretty sure it doesn't do this for eitherInventory
or theSuperDataObj
subtypes.Describe the solution you'd like
Revise the
__repr__
output suitably. Instantiation of each type is probably straightforward enough that this would be feasible, and relatively readable.A
__repr__
forInventory
with all object details is obviously not feasible, due to the massive output it would generate. Thus,SourceType.Manual
instances, as well as those created directly from strings, would just not have a recreation-usable__repr__
. It should be possible with the other source types.... though theInventory
data model might have to be revised in order to store the source location (file path or URL).Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: