- Notifications
You must be signed in to change notification settings - Fork321
fix: add types to DatasetReference constructor#1601
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
fix: add types to DatasetReference constructor#1601
Uh oh!
There was an error while loading.Please reload this page.
Conversation
chalmerlowe left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM
chalmerlowe commentedJun 29, 2023
Welp: We appear to be faced with a mismatch. Doing a run of mypy against the code produces this error: Feel free to dig into this and see what produces that incompatible type on line 187 and what we might need to do to resolve this issue. |
…ub.com/kserruys/python-bigquery into fix/datasetreference-constructor-types
chalmerlowe commentedJul 13, 2023
@kserruys let's run kokoro and see what kinda results we get from the tests. |
chalmerlowe commentedJul 14, 2023
The two types of The Are you comfortable diving into the test suite to see what needs to be added to the tests to provide coverage for the new conditional? |
| eliflen(parts)>2: | ||
| else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Hereelse: covers the same cases aselif len(parts) > 2:
Parameterdataset_id is a string, because of that listparts will always have at least 1 item.
By usingelse we can reassurepytest-cov that everything is ok.
kserruys commentedAug 21, 2023
Sure :). I just took a while to find some time to do this. Regards |
tswast commentedApr 12, 2024
Thanks@kserruys so much for the contribution and for your patience on this! |
Uh oh!
There was an error while loading.Please reload this page.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes#1598 🦕