Breaking change in v2.10.x: User and Server models require new mandatory fields
メンテナーはふだん 1 日以内に返信
@estellesoulard がすでに取り組んでいます。
2026年1月13日 から。
評価
この issue はまだ評価されていません。
説明
Community Note
- Please vote on this issue by adding a 👍
reaction to the original
issue to help the community and maintainers prioritize this request - Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate
extra noise for issue followers and do not help prioritize the request - If you are interested in working on this issue or have submitted a pull request, please leave a comment
Command attempted
from datetime import datetime
from dateutil.tz import tzutc
from scaleway.iam.v1alpha1 import User
from scaleway.instance.v1 import Server
# This fails with: TypeError: User.__init__() missing 4 required positional arguments:
# 'first_name', 'last_name', 'phone_number', and 'locale'
user = User(
id="998cbe72-913f-4f55-8620-4b0f7655d343",
email="[email protected]",
username="[email protected]",
organization_id="0681c477-fbb9-4820-b8d6-0eef10cfcd6d",
created_at=datetime(2025, 3, 20, 7, 39, 54, 526837, tzinfo=tzutc()),
updated_at=datetime(2025, 6, 20, 9, 19, 54, 496281, tzinfo=tzutc()),
deletable=False,
type_="owner",
status="activated",
mfa=True,
account_root_user_id="db2c157f-0ae0-4f9c-aa24-bcccba549e52",
tags=[],
locked=False,
last_login_at=datetime(2025, 6, 20, 9, 19, 54, 502555, tzinfo=tzutc()),
two_factor_enabled=True,
)
# This fails with: TypeError: Server.__init__() missing 2 required positional arguments:
# 'filesystems' and 'end_of_service'
server = Server(
id="345627e9-18ff-47e0-b73d-3f38fddb4390",
name="demo-server",
organization="0681c477-fbb9-4820-b8d6-0eef10cfcd6d",
project="0681c477-fbb9-4820-b8d6-0eef10cfcd6d",
# ... other fields omitted for brevity
zone="fr-par-1",
)
Expected Behavior
The User and Server objects should be instantiable with the fields that were previously sufficient, or the new
fields (first_name, last_name, phone_number, locale for User and filesystems, end_of_service for Server) should
have default values or be optional parameters.
This code worked in previous SDK versions without these additional required fields.
Actual Behavior
SDK version 2.10.x introduces breaking changes where these models now require additional positional arguments:
TypeError: User.__init__() missing 4 required positional arguments: 'first_name', 'last_name', 'phone_number', and
'locale'
TypeError: Server.__init__() missing 2 required positional arguments: 'filesystems' and 'end_of_service'
These breaking changes cause existing code that creates these model instances to fail at import time.
More info
SDK-Python version: 2.10.2
Python version: 3.12.8
OS version: macOS Darwin 25.0.0
Additional context:
- We're calling these objects just for test generation code in https://github.com/cartography-cncf/cartography.
- https://github.com/cartography-cncf/cartography/issues/2003
We'll update our test code properly but figured I'd file an issue and say hi :D
Thanks for your time!
- 主要言語
- Python
- スター
- 37
- フォーク
- 17
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 72
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
scaleway/scaleway-sdk-python のほかの issue
-
Published wheel declares both BSD and proprietary classifiers, and ships no license file再び着手できるかも @estellesoulard が 30 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
scaleway/scaleway-sdk-python#2131 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Secret Manager `list_secrets` silently returns empty when both `organization_id` and `project_id` are set再び着手できるかも @estellesoulard が 30 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug secret
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
scaleway/scaleway-sdk-python#2147 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Ensure SDK python usability with LSP pylance / pyright再び着手できるかも @elwinar が 50 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンagent enhancement
scaleway/scaleway-sdk-python#1954 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
scaleway/scaleway-sdk-python#1673 ·
メンテナーはふだん 1 日以内に返信
-
Allow setting MongoDB private network when restoring a snapshot再び着手できるかも @estellesoulard が 281 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
scaleway/scaleway-sdk-python#1139 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
scaleway/scaleway-sdk-python の issue をすべて見る
似ている issue
-
comp/tools P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NousResearch/hermes-agent#142908 · コメント 1 件 ·
-
[oblt-aw][autodoc] Fix malformed headings in new Buildkite docs pages対応中かも @github-actions が今日担当しました。 オープンdocumentation
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: fileUploadMatrix.test.ts URL case does a real DNS lookup and fails offline対応中かも @r2jaff が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ComposioHQ/composio#5054 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
pytorch/tensordict#3286 ·
メンテナーはふだん 1 日以内に返信