Closed gber closed 6 years ago
I still have an issue with this one since I work with some types (like dict key or value views) that I have to cast to list before passing to render.
@bugadani Would you mind opening a new issue with a specific example of the bad behavior?
Currently rendering of lists is very restrictive as it only accepts python's built-in
list
type. IMHO that is not pythonic since it does not allow for duck typing or even subclasses oflist
. This causes problems for me when I pass YAML data parsed by ruamel.yaml into it which uses list-like types for YAML lists. AFAICS it should not be a problem to check for any iterable type (except astr
in python3) instead and then loop over it.