[pyOpenSci review] use hasattr(x, "to_html")
instead of checking for a UnitStr
instance
#535
Labels
hasattr(x, "to_html")
instead of checking for a UnitStr
instance
#535
From the pyOpenSci comment:
suggestion (_text.py): I wonder if we could use hasattr(x, "to_html") instead of checking for a UnitStr instance. That way we would 1. get rid of the circular import and 2. enable other types. I totally understand if you want to keep full control of what is rendered, though.
pyOpenSci/software-submission#202 (comment)
The text was updated successfully, but these errors were encountered: