posit-dev / py-htmltools

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

Remove `str` parent class of `HTML` #84

Open schloerke opened 6 months ago

schloerke commented 6 months ago

Currently, it is not obvious when asking if an object is a string. I have to ask if not isinstance(x, HTML) and isinstance(x, str).

I'd happy to add a __str__ method and a tagify() method, but I'd like to remove the parent class of str