posit-dev / py-htmltools

Tools for HTML generation and output
MIT License
19 stars 4 forks source link

Remove `list` as parent class of `TagList` #85

Open schloerke opened 6 months ago

schloerke commented 6 months ago

Similar to #84 , I'd like to remove the parent class of list from TagList. This allows me to not have to exclude a TagList when looking for a true list item.

I don't believe I've used (but I could have!) the subset methods that a list leverages:

If we'd like these methods, we can implement them. Or we could ask users to leverage x.children.METHOD().