Static external IP sample entry point passes invalid keyword arguments
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
compute/client_library/recipes/instances/ip_address/assign_static_external_ip_to_new_vm.py と、compute/client_library/snippets/instances/ip_address/assign_static_external_ip_to_new_vm.py にある生成された対応ファイルから始めます。コマンドラインのエントリーポイントを調べ、報告された mypy チェックまたはサンプルを実行して、呼び出しが関数で受け付けられる引数を使用していることを確認します。生成されたサンプルで keyword エラーが報告されなくなり、引数の検証を通過して実行できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
In which file did you encounter the issue?
compute/client_library/recipes/instances/ip_address/assign_static_external_ip_to_new_vm.pycompute/client_library/snippets/instances/ip_address/assign_static_external_ip_to_new_vm.py
Did you change the file? If so, how?
No.
Describe the issue
The command-line entry point calls assign_static_external_ip_to_new_vm with external_ipv4 and external_access keyword arguments, but the function accepts a single ip_address argument. The generated snippet and its source recipe contain the same incorrect call.
Static reproduction:
compute\\client_library\\snippets\\instances\\ip_address\\assign_static_external_ip_to_new_vm.py:313: error: Unexpected keyword argument "external_ipv4" for "assign_static_external_ip_to_new_vm" [call-arg]
compute\\client_library\\snippets\\instances\\ip_address\\assign_static_external_ip_to_new_vm.py:313: error: Unexpected keyword argument "external_access" for "assign_static_external_ip_to_new_vm" [call-arg]
At runtime, the call raises TypeError: assign_static_external_ip_to_new_vm() got an unexpected keyword argument 'external_ipv4' before the instance is created.
Expected behavior: the sample entry point passes the pre-created address as ip_address. Actual behavior: the generated sample cannot run.
Environment: Python 3.12, mypy 1.14.1, repository main at commit 430a87ada6f2d33f318b5d16b77464679905a140.
- 主要言語
- Jupyter Notebook
- スター
- 8.1k
- フォーク
- 6.7k
- 平均マージ
- 4日 4時間
- マージ済み PR(30日)
- 8
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GoogleCloudPlatform/python-docs-samples のほかの issue
-
samples
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
GoogleCloudPlatform/python-docs-samples#14609 ·
メンテナーはふだん 1 日以内に返信
-
samples
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
GoogleCloudPlatform/python-docs-samples#14610 ·
メンテナーはふだん 1 日以内に返信
-
chore(generative_ai) Update model references for generative_ai samples再び着手できるかも @XrossFox が 152 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンsamples
GoogleCloudPlatform/python-docs-samples#14117 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Fix Pipeline dependency issues for geospatial-classification/serving_app再び着手できるかも @XrossFox が 164 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンsamples
GoogleCloudPlatform/python-docs-samples#14091 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
samples
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
GoogleCloudPlatform/python-docs-samples#13734 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
GoogleCloudPlatform/python-docs-samples の issue をすべて見る
似ている issue
-
bug status/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
prowler-cloud/prowler#12885 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
nasa/cumulus-process-py#156 ·
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
render.yamlオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
[BUG] `RunsArtifactRepository.download_artifacts` reports artifact store errors as a wrong pathオープンarea/tracking
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信