-
The current implementation of Literal collections accepts only Literal type objects but in python collections can store variables, Constants, other collections, Objects, functions as well.
-
Collections extend Literal type which has value attribute and his attribute is used in __str__ and get_structs method which cause object has no attribute 'value' error
Available Solutions
- Update the current Literal collections to fix these issues
- create new collections which extent
DataType class and can store DataType types which includes (FunctionCall, Literals)
I will be working on this, before starting I would like to know what do maintainer thinks on this issue and what solution should I implement?
The current implementation of Literal collections accepts only Literal type objects but in python collections can store variables, Constants, other collections, Objects, functions as well.
Collections extend Literal type which has value attribute and his attribute is used in
__str__andget_structsmethod which causeobject has no attribute 'value'errorAvailable Solutions
DataTypeclass and can storeDataTypetypes which includes (FunctionCall, Literals)I will be working on this, before starting I would like to know what do maintainer thinks on this issue and what solution should I implement?