html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/6226#issuecomment-1026812348,https://api.github.com/repos/pydata/xarray/issues/6226,1026812348,IC_kwDOAMm_X849M-m8,6628425,2022-02-01T12:55:34Z,2022-02-01T12:55:34Z,MEMBER,"Awesome, thanks @antarcticrainforest -- yes, it will always have an object `dtype`.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1120276279
https://github.com/pydata/xarray/issues/6226#issuecomment-1026701337,https://api.github.com/repos/pydata/xarray/issues/6226,1026701337,IC_kwDOAMm_X849MjgZ,6628425,2022-02-01T10:39:28Z,2022-02-01T10:39:28Z,MEMBER,"Thanks @antarcticrainforest -- I think that's exactly what @mathause is getting at. It seems fairly safe to add a new keyword argument to `CFTimeIndex.__new__`, and the example @mathause uses would make a nice test. Would either of you be up to make a PR?","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1120276279
https://github.com/pydata/xarray/issues/6226#issuecomment-1026641184,https://api.github.com/repos/pydata/xarray/issues/6226,1026641184,IC_kwDOAMm_X849MU0g,10194086,2022-02-01T09:34:48Z,2022-02-01T09:34:48Z,MEMBER,"Smaller repro
```python
import xarray as xr
import pickle
t = xr.cftime_range(""20010101"", ""20010520"")
pickle.loads(pickle.dumps(t))
```
Looks like pandas now passes `dtype` on to `__new__` which `CFTimeIndex.__new__` does not accept:
https://github.com/pydata/xarray/blob/fe491b14b113c185b5b9a18e4f643e5a73208629/xarray/coding/cftimeindex.py#L313
Might be pandas-dev/pandas#43188. So `CFTimeIndex.__new__` might need to accept `dtype`? @spencerkclark
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1120276279