Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Static external IP sample entry point passes invalid keyword arguments

オープン 初心者向け
#14,611 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
gcp, python
領域
cloud

調査の方向性

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 の本文から書いたものです。

説明

samples

In which file did you encounter the issue?

  • 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

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GoogleCloudPlatform/python-docs-samples のほかの issue

GoogleCloudPlatform/python-docs-samples の issue をすべて見る

似ている issue

Cloud の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。