dataclass-wizard
dataclass-wizard copied to clipboard
Fix: LiteralParser __contains__ method compares value of item with Literal arguments
Closes #67.
Instead of checking that type(item) is self.base_type (like is implemented in the base class AbstractParser), we need to check if the item is in the values of the given Literal.
Would be nice to see this fix merged :)
@rmmr I was planning to post a reminder today, great minds think alike :')
@rnag Would you have time to look at this PR? Thanks!
@rnag Hello :) Have you been able to consider this? Thanks :)