check for bytes return type and dictifiy it#710
Conversation
I am not against it in principle, but where I've been forced to use it myself (pandas, xarray), it took far more effort to twist the type system to what I need, and several errors in that process. Perhaps my coding style is inherently type-unfriendly. |
|
I suppose it's worth a test? |
|
Can someone confirm that this fixes xarray? @keewis |
|
it does! I can confirm that the |
|
Rerunning tests, will merge when green. |
|
Thank you @d-v-b . I still don't quite understand why this became an issue now, but never mind! |
|
Would it be possible to tag a release with this change @martindurant ? 🙂 No worries if you are busy |
|
Waiting on #731 |
Fixes #707
self.fs.catreturns an instance ofbytesifkeys2has one element, which causes an error whenfsmap.getitemsattempts to access theitemsproperty of that value. This PR checks ifself.fs.catreturned an instance ofbytes, and if so, sticks it in a dict. This kind of problem might be an argument for type annotations, which would have flagged this issue earlier.