-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
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
Regression: panflute.elements.builtin2meta no longer supports subclasses of builtins #166
Comments
Thanks. Can you give me a MWE here? |
class My_Dict(dict):
pass
my_dict = My_Dict()
data = [my_dict]
pf.elements.builtin2meta(data) Raises
|
Thanks. I'm looking at it right now. In real cases would the only subclasses used be of Block and Inline? Or any of the types? If it is only Block and Inline, then we can special case them. Else, just revert that commit. |
What about my suggestion at #146 (comment)
I will submit a PR
I think any builtin types might be subclassed |
closes sergiocorreia#166 fixes regression in a72ffb5
Ok, I finally understand the issue a bit better. Was initially confused about it being related to |
Right, see comment at #167 (comment) |
a72ffb5 was first released in 2.0.3. It breaks support for converting subclasses of builtin types to pandoc meta types. This is because it stops using
isinstance
and directly compares type instead. CC @ickcThis caused the issue mentioned at manubot/rootstock#386 (comment) and #164 (comment):
CSL_Item is a dict subclass.
The text was updated successfully, but these errors were encountered: