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: type-check friendlier exports #1407

Merged
merged 2 commits into from
May 29, 2023
Merged

chore: type-check friendlier exports #1407

merged 2 commits into from
May 29, 2023

Conversation

roeap
Copy link
Collaborator

@roeap roeap commented May 29, 2023

Description

Some static type checker (i.e. pyright) consider imports as internal to the module unless explicitly stated otherwise - by adding it to __all__ or using the "redundant alias" (not sure that's an official term 😆) form. I opted for the second, as I think it looks a bit nicer..

We were also exporting RawDeltaTable at the root, which I thogtht would be an internal class, that we do not want to expose to users?

Took the opportunity to also add a few more docstrings.

Related Issue(s)

Documentation

@github-actions github-actions bot added the binding/python Issues for the Python package label May 29, 2023
Comment on lines 100 to +107
name: str
"""The field name."""
type: DataType
"""The field data type."""
nullable: bool
"""The field nullability."""
metadata: Dict[str, Any]
"""The field metadata."""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this show up in the API reference correctly? I had never seen this syntax before.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Checked again, and it seems to be valid.

@roeap roeap merged commit 3c629b0 into delta-io:main May 29, 2023
@roeap roeap deleted the exports branch May 29, 2023 18:02
roeap added a commit to roeap/delta-rs that referenced this pull request Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/python Issues for the Python package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants