Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add type hints in google/ads/googleads/interceptors #958

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bobhancockg
Copy link
Contributor

…gle/ads/googleads/interceptors` directory.

Here's a list of the files I updated:

  • exception_interceptor.py
  • helpers.py
  • interceptor.py
  • logging_interceptor.py
  • metadata_interceptor.py
  • response_wrappers.py

Note that __init__.py didn't require any changes.

While adding the type hints, I also made some minor improvements to enhance the robustness and clarity of the code in a few files. This involved adding necessary imports from the typing module and other relevant libraries like grpc and google.protobuf. I also used TypeVars to effectively handle generic protobuf messages and continuation callables.

…gle/ads/googleads/interceptors` directory.

Here's a list of the files I updated:
- `exception_interceptor.py`
- `helpers.py`
- `interceptor.py`
- `logging_interceptor.py`
- `metadata_interceptor.py`
- `response_wrappers.py`

Note that `__init__.py` didn't require any changes.

While adding the type hints, I also made some minor improvements to enhance the robustness and clarity of the code in a few files. This involved adding necessary imports from the `typing` module and other relevant libraries like `grpc` and `google.protobuf`. I also used TypeVars to effectively handle generic protobuf messages and continuation callables.
@bobhancockg bobhancockg requested a review from a team as a code owner May 24, 2025 14:39
@bobhancockg bobhancockg requested review from Raibaz and dorasun May 24, 2025 14:39
@bobhancockg bobhancockg changed the title I've added type hints and annotations to the Python files in the `goo… Added type hints in the `google/ads/googleads/interceptors Jun 2, 2025
@bobhancockg bobhancockg changed the title Added type hints in the `google/ads/googleads/interceptors Added type hints in google/ads/googleads/interceptors Jun 2, 2025
@bobhancockg bobhancockg changed the title Added type hints in google/ads/googleads/interceptors Add type hints in google/ads/googleads/interceptors Jun 2, 2025
@BenRKarl BenRKarl added the kokoro:run This label is required to run a kokoro presubmit if an external contributor sends a PR. label Jun 5, 2025
@kokoro-team kokoro-team removed the kokoro:run This label is required to run a kokoro presubmit if an external contributor sends a PR. label Jun 5, 2025
@BenRKarl BenRKarl added the kokoro:force-run This label is required to run a kokoro presubmit if an external contributor sends a PR. label Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kokoro:force-run This label is required to run a kokoro presubmit if an external contributor sends a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants