-
Couldn't load subscription status.
- Fork 92
Open
Labels
proposalIdea for a new feature.Idea for a new feature.
Description
Hi all!
I was wondering if it could be considered to improve the typings for rioxarray.open_rasterio.
Indeed, the returned typings are
xarray.Dataset | xarray.DataArray | list[xarray.Dataset]
Creating so many typing issues in the code, like:
Cannot access attribute "attrs" for class "list[Dataset]"
Attribute "attrs" is unknown. Pylance[reportAttributeAccessIssue]
The solution would be to ignore the type or check everywhere if the instance is a list, which is not a clean solution IMO.
It would be amazing if you would consider only returning xarray.Dataset | xarray.DataArray for this function.
Have a great day!
cas--
Metadata
Metadata
Assignees
Labels
proposalIdea for a new feature.Idea for a new feature.