[Python] Overriding ODS op registrations

Is it possible to override a class registered with @_ods_cext.register_operation(_Dialect)? I’d like to provide my own class when doing a block iteration for a dialect over which my code has no control. (Actually, it’s a subclass of the original ODS generated class.) When I try naively, I get RuntimeError: Operation 'hw.instance' is already registered. which is what I would expect. I looked in the C++ code, and there doesn’t appear to be a way to modify the entry after the initial registration.

Alternatively, is there a recommended python trick I could use?