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

fix(datatypes): document "!" as meaning non-nullable, enable nullable arg for type hints #10893

Conversation

romaingd
Copy link
Contributor

Description of changes

Hi! This PR documents "!" as meaning "non-nullable" when used as a prefix of a datatype.

It also enables the nullable argument for the non-dispatched case of dtype (I could not find a good reason to keep it disabled):

Before (on main):

>>> ibis.dtype(int, nullable=False)
Int64(nullable=True)

After:

>>> ibis.dtype(int, nullable=False)
Int64(nullable=False)

Issues closed

@github-actions github-actions bot added tests Issues or PRs related to tests datatypes Issues relating to ibis's datatypes (under `ibis.expr.datatypes`) labels Feb 24, 2025
Copy link
Contributor

ACTION NEEDED

Ibis follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message.

Please update your PR title and description to match the specification.

@romaingd romaingd changed the title fix(datatypes): Document "!" as meaning non-nullable, enable nullable arg for type hints fix(datatypes): document "!" as meaning non-nullable, enable nullable arg for type hints Feb 24, 2025
Copy link
Member

@cpcloud cpcloud left a comment

Choose a reason for hiding this comment

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

Thanks!

@cpcloud cpcloud merged commit 601aabe into ibis-project:main Feb 25, 2025
88 of 90 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datatypes Issues relating to ibis's datatypes (under `ibis.expr.datatypes`) tests Issues or PRs related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs: mention and clarify meaning of ! in schemas
2 participants