Uh oh!
There was an error while loading. Please reload this page.
fix: add types to DatasetReference constructor - #1601
Conversation
chalmerlowe
commented
Jun 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
commented
Jul 13, 2023
@kserruys let's run kokoro and see what kinda results we get from the tests. |
chalmerlowe
commented
Jul 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? |
| elif len(parts) > 2: | ||
| else: |
There was a problem hiding this comment.
Here else: covers the same cases as elif len(parts) > 2:
Parameter dataset_id is a string, because of that list parts will always have at least 1 item.
By using else we can reassure pytest-cov that everything is ok.
kserruys
commented
Aug 21, 2023
Sure :). I just took a while to find some time to do this. Regards |
tswast
commented
Apr 12, 2024
Thanks @kserruys so much for the contribution and for your patience on this! |
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 🦕