wsattr default arguments won't work with complex types
Bug #1227039 reported by
Mehdi Abaakouk
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
WSME |
Fix Released
|
High
|
Julien Danjou |
Bug Description
When I use this :
class ComplexType(Base):
myenum = wsattr(
And I don't set 'myenum' , myenum get wsme.types.Unset instead of the default value.
Changed in wsme: | |
assignee: | nobody → Julien Danjou (jdanjou) |
status: | New → Triaged |
importance: | Undecided → High |
Changed in wsme: | |
milestone: | none → 0.8.0 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It works with int and str says Mehdi, but doesn't work with array of complex type other than Enum for examples.