Tslibs offsets immutable by jbrockmendel · Pull Request #18224 · pandas-dev/pandas (original) (raw)
Still trying to recreate from the branch provided and haven't seen through yet but wondering at the moment if even just making a pass-through cinit would work, ala:
def __cinit__(self, *args):
passMy current thinking there is a result of the below link:
Namely "If you anticipate subclassing your extension type in Python, you may find it useful to give the cinit() method * and ** arguments so that it can accept and ignore extra arguments. Otherwise, any Python subclass which has an init() with a different signature will have to override new() [1] as well as init(), which the writer of a Python class wouldn’t expect to have to do."
Doing such did resolve the TypeError you mentioned originally, though some other errors popped up I haven't had time to look at and may or may not have been resolved by subsequent work you did. Sharing for now in case this finding helps you at all