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

refactor: enforce more type hints #410

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

agoose77
Copy link
Collaborator

This is a small PR to enforce some more type hints

@agoose77 agoose77 requested review from douglasdavis and removed request for douglasdavis November 11, 2023 12:07
@agoose77 agoose77 merged commit 9d3433d into main Nov 11, 2023
3 of 24 checks passed
"This function is not necessary in the context of dask-awkward."
)
def copy(array: Array) -> Array:
return array

Copy link
Collaborator

Choose a reason for hiding this comment

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

This could be a little confusing, no? Folks might expect to get a new object

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This change should have been louder and/or had a review from you, sorry.

My rationale is that we want ak.XXX to work on both ak and dak Array objects. Thus, we should still support the function. However, I now realise that with the way that coffea (ab)uses behavior, and now with attrs, we'll need to perform a shall copy. Let me make a new PR.

Otherwise, are you happy with this rationale?

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