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

feat(api): expose common types in the top-level ibis namespace #9008

Merged
merged 1 commit into from Apr 19, 2024

Conversation

jcrist
Copy link
Member

@jcrist jcrist commented Apr 18, 2024

Adds Table, Column, Scalar, Value, and Deferred to the top-level ibis namespace. These are mostly useful for downstream users consuming the ibis api (either type-annotating their code, or using isinstance checks).

Fixes #8717.

@@ -51,6 +54,15 @@
from ibis.expr.schema import SchemaLike

__all__ = (
Copy link
Member Author

Choose a reason for hiding this comment

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

I ran :sort on this list in vim, which is why there's a bunch of extra movement here.

Turns out we were already exporting Expr and Schema types (but no others), but these were buried in the __all__ list before :).

@cpcloud cpcloud added this to the 9.0 milestone Apr 19, 2024
@cpcloud cpcloud added the ux User experience related issues label Apr 19, 2024
@cpcloud cpcloud merged commit 3f3ed27 into ibis-project:main Apr 19, 2024
83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ux User experience related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: expose common public types in top-level namespace
2 participants