Thanks for the report. It's not intended. The bug is here:
https://github.com/lxml/lxml/blob/master/src/lxml/apihelpers.pxi#L290-L305
Note how the inheritance test first checks for "dict", then for "OrderedDict". Sadly, "OrderedDict" inherits from "dict", so the second branch is never taken for it.
Thanks for the report. It's not intended. The bug is here:
https:/ /github. com/lxml/ lxml/blob/ master/ src/lxml/ apihelpers. pxi#L290- L305
Note how the inheritance test first checks for "dict", then for "OrderedDict". Sadly, "OrderedDict" inherits from "dict", so the second branch is never taken for it.