Skip to content

Conversation

crusaderky
Copy link
Contributor

No description provided.

*,
copy: bool = True,
device: Device | None = None
device: Optional[Device] = None
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change only matters if someone runs mypy/pyright in python 3.9. Runtime is unaffected due to from __future__ import annotations.

return xp.arange(*args, dtype=dtype, **kwargs)

arange = get_xp(da)(_dask_arange)
eye = get_xp(da)(_aliases.eye)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate

from __future__ import annotations

from ...common import _aliases
from ...common._helpers import _check_device
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does nothing for dask

@crusaderky crusaderky changed the title MAINT: dask.array: cosmetic tweaks MAINT: dask: cosmetic tweaks Jan 16, 2025
@crusaderky
Copy link
Contributor Author

@ev-br this is ready for review and merge

Copy link
Member

@ev-br ev-br left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a nice cleanup, thanks @crusaderky

@ev-br ev-br enabled auto-merge January 16, 2025 19:34
@ev-br
Copy link
Member

ev-br commented Jan 16, 2025

There's a conflict now, could you resolve it please Guido

auto-merge was automatically disabled January 17, 2025 14:31

Head branch was pushed to by a user without write access

@ev-br ev-br merged commit 8a79994 into data-apis:main Jan 18, 2025
42 checks passed
@crusaderky crusaderky deleted the dask_cosmetic branch January 20, 2025 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants