Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add BaseOffset as a final proxy type to pass instancechecks for offse…
…ts against `BaseOffset` (#14678) Addresses part of #14674. This PR makes `cudf.pandas` aware of the `BaseOffset` type. Because of the way `isinstance()` checks work on proxy types*, we will now pass instance checks like: ```python freq = "D" assert isinstance(pd.tseries.frequencies.to_offset(freq), pd.tseries.offsets.BaseOffset) ``` *proxy types appear to be related to each other in the same way as their corresponding slow types. So if `A` inherits from `B`, then `ProxyA` _appears_ to inherit from `ProxyB` even though they are not _actually_ related by inheritance. Authors: - Ashwin Srinath (https://github.com/shwina) - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) URL: #14678
- Loading branch information