Skip to content

Missing documentation targets after refactor that moved classes out of core module #10195

Closed
@malmans2

Description

@malmans2

Is your feature request related to a problem?

I've been using DataArrayWeighted and DatasetWeighted for typing purposes. A recent refactor moved these objects from xarray.core.weighted to xarray.computation.weighted, which broke my downstream code. Technically, I guess this is not a breaking change, but those classes are exposed in the documentation (e.g., DataArrayWeighted)

Would it be possible to import these objects at the top level in __init__.py? If not, what would you recommend for downstream packages? Should they just avoid relying on these classes?

Describe the solution you'd like

from xarray import DataArrayWeighted, DatasetWeighted

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions