-
Notifications
You must be signed in to change notification settings - Fork 29
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
Conversation
def astype( | ||
x: Array, | ||
dtype: Dtype, | ||
/, | ||
*, | ||
copy: bool = True, | ||
device: Device | None = None | ||
device: Optional[Device] = None |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does nothing for dask
@ev-br this is ready for review and merge |
There was a problem hiding this 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
There's a conflict now, could you resolve it please Guido |
Head branch was pushed to by a user without write access
be4addb
to
0e4d6d8
Compare
No description provided.