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

chore: add main API functions & classes to top level __init__.py #331

Merged
merged 2 commits into from
Jul 25, 2023

Conversation

douglasdavis
Copy link
Collaborator

@douglasdavis douglasdavis commented Jul 25, 2023

Quite a while ago we moved all parts of dask_awkward that import upstream awkward inside of a lib submodule and made the top level __init__.py use __getattr__ to find classes and functions in lib on-demand. The purpose of this was to avoid importing awkward unnecessarily (i.e. on a remote dask scheduler). As of dask==2023.4.0 and distributed==2023.4.0 the scheduler is now required to have the same installed packages as the client and workers [1], so this workaround is now pointless. It will make life easier (and make finding function definitions/references in IDEs easter) if we use simple top level namespace imports.

[1] https://distributed.dask.org/en/stable/changelog.html#v2023-4-0

@douglasdavis douglasdavis changed the title feat: add main API functions & classes to top level __init__.py chore: add main API functions & classes to top level __init__.py Jul 25, 2023
@douglasdavis douglasdavis merged commit 0c3493d into dask-contrib:main Jul 25, 2023
22 checks passed
@douglasdavis douglasdavis deleted the top-level-imports branch July 25, 2023 17:53
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.

1 participant