Skip to content

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.

@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
…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.
@BenRKarl BenRKarl force-pushed the add-type-hints-interceptors branch from 8d8e1a6 to 22e3ee9 Compare October 24, 2025 14:35
@kokoro-team kokoro-team removed the kokoro:force-run This label is required to run a kokoro presubmit if an external contributor sends a PR. label Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants