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: adds new input validation function similar to isinstance. #2107

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

chalmerlowe
Copy link
Collaborator

This PR adds a new helper function isinstance_or_raise() that raises a TypeError if a user inputs a value that is the wrong datatype.

@chalmerlowe chalmerlowe requested review from a team as code owners January 9, 2025 15:05
@chalmerlowe chalmerlowe requested a review from shollyman January 9, 2025 15:05
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery API. labels Jan 9, 2025
@chalmerlowe chalmerlowe assigned Linchin and unassigned leahecole Jan 9, 2025
Copy link
Contributor

@Linchin Linchin left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

@chalmerlowe chalmerlowe merged commit a2bebb9 into main Jan 9, 2025
19 checks passed
@chalmerlowe chalmerlowe deleted the feat-b358215039-adds-isinstance-or-raise-func branch January 9, 2025 18:42
chalmerlowe added a commit that referenced this pull request Jan 22, 2025
* feat: adds new function similar to isinstance.

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants