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

process: add mypy-valid type annotations to samples #1081

Merged
merged 27 commits into from
Dec 14, 2021

Commits on Nov 16, 2021

  1. feat: allow cell magic body to be a $variable (googleapis#1053)

    * feat: allow cell magic body to be a $variable
    
    * Fix missing indefinitive article in error msg
    
    * Adjust test assertion to error message change
    
    * Refactor logic for extracting query variable
    
    * Explicitly warn about missing query variable name
    
    * Thest the query "variable" is not identifier case
    plamut authored Nov 16, 2021
    Configuration menu
    Copy the full SHA
    3a681e0 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2021

  1. Configuration menu
    Copy the full SHA
    1b5dc5c View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2021

  1. feat: promote RowIterator.to_arrow_iterable to public method (googl…

    …eapis#1073)
    
    * feat: promote `to_arrow_iterable` to public method
    
    * use correct version number
    
    * Update google/cloud/bigquery/table.py
    
    Co-authored-by: Tim Swast <swast@google.com>
    judahrand and tswast authored Nov 19, 2021
    Configuration menu
    Copy the full SHA
    21cd710 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2021

  1. fix: apply timeout to all resumable upload requests (googleapis#1070)

    * fix: apply timeout to all resumable upload requests
    
    * Fix stub in test case
    
    * Improve timeout type and other type annotations
    
    * Annnotate return type of _do_resumable_upload()
    plamut authored Nov 24, 2021
    Configuration menu
    Copy the full SHA
    3314dfb View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2021

  1. chore: release 2.31.0 (googleapis#1066)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Dec 2, 2021
    Configuration menu
    Copy the full SHA
    a135956 View commit details
    Browse the repository at this point in the history
  2. test: check extreme DATE/DATETIME values can be loaded from pandas Da…

    …taFrame (googleapis#1078)
    
    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:
    - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-bigquery/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
    - [ ] Ensure the tests and linter pass
    - [ ] Code coverage does not decrease (if any source code was changed)
    - [ ] Appropriate docs were updated (if necessary)
    
    Towards #1076 🦕
    (edit: moved to googleapis/python-db-dtypes-pandas#45 )
    tswast authored Dec 2, 2021
    Configuration menu
    Copy the full SHA
    be6eb34 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2021

  1. docs: add sample for revoking dataset access (googleapis#778)

    * revoke dataset access setup
    
    * basic template for sample
    
    * sample + test
    
    * revoke dataset access sample
    
    * 🦉 Updates from OwlBot
    
    See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md
    
    * docs: add sample for revoking dataset access - update year and string formatting
    
    * docs: add sample for revoking dataset access - move to snippets and change parameter pattern for readibility
    
    * moving update_dataset to /snippets and adjusting imports on both revoke_access and update_access
    
    * Update samples/snippets/revoke_dataset_access.py
    
    removed nested START/END tags
    
    Co-authored-by: Tim Swast <swast@google.com>
    
    * Update samples/snippets/revoke_dataset_access.py
    
    update readability in API request
    
    Co-authored-by: Tim Swast <swast@google.com>
    
    * 🦉 Updates from OwlBot
    
    See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md
    
    * updated test
    
    * 🦉 Updates from OwlBot
    
    See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md
    
    * change after running test
    
    * resolving linting failure, rewriting test
    
    * removed relative import errors
    
    * remove relative mport from update_dataset_access
    
    * adding fixture to conftest.py
    
    * updated sample
    
    * updating sample to match new update_access sample
    
    * fixing region tags
    
    * consolidated tests into one file for both methods
    
    * updating test to full_dataset format
    
    * updated revoke sample
    
    * updating test
    
    * refactored sample
    
    * Update samples/snippets/conftest.py
    
    * Update samples/snippets/revoke_dataset_access.py
    
    Co-authored-by: Tim Swast <swast@google.com>
    
    * Update samples/snippets/update_dataset_access.py
    
    Co-authored-by: Tim Swast <swast@google.com>
    
    * Update samples/snippets/revoke_dataset_access.py
    
    Co-authored-by: Tim Swast <swast@google.com>
    
    * Update samples/snippets/revoke_dataset_access.py
    
    Co-authored-by: Tim Swast <swast@google.com>
    
    * refactoring entry
    
    * added comment for entry access
    
    * Update samples/snippets/README.rst
    
    Co-authored-by: Tim Swast <swast@google.com>
    
    * Update samples/snippets/dataset_access_test.py
    
    Co-authored-by: Tim Swast <swast@google.com>
    
    * Update samples/snippets/dataset_access_test.py
    
    Co-authored-by: Tim Swast <swast@google.com>
    
    * added develper TODO in sample
    
    * add comments to samples
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    Co-authored-by: Tim Swast <swast@google.com>
    Co-authored-by: Peter Lamut <plamut@users.noreply.github.com>
    Co-authored-by: Anthonios Partheniou <partheniou@google.com>
    Co-authored-by: meredithslota <meredithslota@google.com>
    6 people authored Dec 6, 2021
    Configuration menu
    Copy the full SHA
    effd673 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2021

  1. Configuration menu
    Copy the full SHA
    d1a9902 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8141548 View commit details
    Browse the repository at this point in the history
  3. Add type hints to snippets

    plamut committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    0b58d9d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    452f15e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ee1179a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d77d70e View commit details
    Browse the repository at this point in the history
  7. Add type hints to core libraries for samples' needs

    Samples use the code from the core library, but mypy complains about
    calling an untyped function in a typed context, thus some additional
    type annotations need to be added.
    plamut committed Dec 8, 2021
    Configuration menu
    Copy the full SHA
    8195894 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6a3713b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c4d0ab5 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c0ef9a0 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    86dd389 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    278dac7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    2c78c72 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    12e118d View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2021

  1. Configuration menu
    Copy the full SHA
    44221f4 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2021

  1. Configuration menu
    Copy the full SHA
    eaaffb7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    040a21c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fdabea3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    484a6ee View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8c40ec7 View commit details
    Browse the repository at this point in the history