Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

feat: adds new input validation function similar to isinstance. - #2107

Merged
chalmerlowe merged 3 commits into
mainfrom
feat-b358215039-adds-isinstance-or-raise-func
Jan 9, 2025
Merged

feat: adds new input validation function similar to isinstance.#2107
chalmerlowe merged 3 commits into
mainfrom
feat-b358215039-adds-isinstance-or-raise-func

Conversation

@chalmerlowe

Copy link
Copy Markdown
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 and shollymanJanuary 9, 2025 15:05
@product-auto-labelproduct-auto-labelBot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery API. labels Jan 9, 2025
@chalmerlowechalmerlowe assigned Linchin and unassigned leahecoleJan 9, 2025

@LinchinLinchin left a comment

Copy link
Copy Markdown
Contributor

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 mainJan 9, 2025
@chalmerlowe
chalmerlowe deleted the feat-b358215039-adds-isinstance-or-raise-func branch January 9, 2025 18:42
@release-pleaserelease-pleaseBot mentioned this pull request Jan 9, 2025
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 freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.size: mPull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@chalmerlowe@Linchin@leahecole