We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With the following definition,
class TaskType(str, enum.Enum): TASK_TYPE1 = 'task_type1' TASK_TYPE2 = 'task_type2'
the enum class instance is converted into a list. I would expect a string instead since str mixin is being inherited.
str
In [78]: json2html.json2html.convert({'task_type': TaskType.TASK_TYPE1}) '<table border="1"><tr><th>task_type</th><td><ul><li>t</li><li>a</li><li>s</li><li>k</li><li>_</li><li>t</li><li>y</li><li>p</li><li>e</li><li>1</li></ul></td></tr></table>'
Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
With the following definition,
the enum class instance is converted into a list. I would expect a string instead since
str
mixin is being inherited.Thanks!
The text was updated successfully, but these errors were encountered: