Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: dask: cosmetic tweaks #236

Merged
merged 1 commit into from
Jan 18, 2025
Merged

Conversation

crusaderky
Copy link
Contributor

No description provided.

def astype(
x: Array,
dtype: Dtype,
/,
*,
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.


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

@@ -1,7 +1,6 @@
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
Contributor

@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
Contributor

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