Skip to content

python: Deprecate Arg in modules - #8109

Merged
helderco merged 3 commits into
dagger:mainfrom
helderco:sdk/python/refactor-resolver
Aug 6, 2024
Merged

helderco merged 3 commits into
dagger:mainfrom
helderco:sdk/python/refactor-resolver

Conversation

@helderco

@helderco helderco commented Aug 6, 2024

Copy link
Copy Markdown
Contributor

Refactor

This was split from #7744 in order to make the changes clearer in that PR, which includes a deprecation, but also a few more type checking fixes.

Arg deprecation

Arg as been deprecated in favor of Name, in preparation for supporting more metadata to arguments. The initial idea was to add them to Arg, but there's a reason for wanting a separate Doc and it's strange to have one specific metadata split from the others in Arg.

Note however that the use of Arg has been removed from the documentation for a while now, and after #8014, the need for Name has been greatly reduced. Users that have Arg because of reserved keywords should remove the explicit name override.

@helderco
helderco requested a review from a team as a code owner August 6, 2024 10:19
@helderco
helderco requested a review from TomChv August 6, 2024 10:19
Signed-off-by: Helder Correia <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
@helderco
helderco force-pushed the sdk/python/refactor-resolver branch from bf1cfad to 2bdc4a8 Compare August 6, 2024 16:03
Signed-off-by: Helder Correia <[email protected]>
@helderco
helderco merged commit 2af247e into dagger:main Aug 6, 2024
@helderco
helderco deleted the sdk/python/refactor-resolver branch August 6, 2024 16:51
@helderco helderco mentioned this pull request Aug 6, 2024
1 of 2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants