Signature misalignment of Directory.with_new_file and Container.with_new_file #6961
Labels
area/engine/api
area/engine
About dagger core engine
area/sdk
kind/breaking
Breaking Change
kind/user-request
What is the issue?
In the Python SDK, the signatures of
Directory.with_new_file
andContainer.with_new_file
are inconsistent. ForDirectory
,contents
is a required positional argument, while forContainer
,contents
is a keyword-only argument. This inconsistency is confusing and often requires referencing the API documentation to determine the correct usage. I vote for setting up a PR, if you could give me a hint on the preferred behaviour.Dagger version
dagger v0.10.2 (registry.dagger.io/engine) darwin/arm64
Steps to reproduce
No response
Log output
No response
The text was updated successfully, but these errors were encountered: