dannikay commented on PR #36982: URL: https://github.com/apache/beam/pull/36982#issuecomment-3614434247
> actually mypy is still failing. > > ``` > 2025-12-04T21:05:36.1516076Z apache_beam/ml/inference/gemini_inference.py:193: error: Unexpected keyword argument "api_version" for "ClientOptions" [call-arg] > 2025-12-04T21:05:36.1517488Z target/.tox-mypy/mypy/lib/python3.10/site-packages/google/api_core/client_options.py:107: note: "ClientOptions" defined here > 2025-12-04T21:05:36.1518654Z apache_beam/ml/inference/gemini_inference.py:193: error: Unexpected keyword argument "headers" for "ClientOptions" [call-arg] > 2025-12-04T21:05:36.1519875Z target/.tox-mypy/mypy/lib/python3.10/site-packages/google/api_core/client_options.py:107: note: "ClientOptions" defined here > 2025-12-04T21:05:36.1520949Z apache_beam/ml/inference/gemini_inference.py:193: error: Unexpected keyword argument "timeout" for "ClientOptions" [call-arg] > 2025-12-04T21:05:36.1522892Z target/.tox-mypy/mypy/lib/python3.10/site-packages/google/api_core/client_options.py:107: note: "ClientOptions" defined here > 2025-12-04T21:05:36.1524279Z apache_beam/ml/inference/gemini_inference.py:193: error: Argument "http_options" to "Client" has incompatible type "ClientOptions"; expected "HttpOptions | HttpOptionsDict | None" [arg-type] > ``` The ClientOption was swapped somehow by some autocompletion tool. I should have checked more thoroughly. Now verified locally that all unit tests pass. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
