sdk/python/.changes/v0.18.4.md
This SDK uses š Engine + š CLI version v0.18.4. See what changed in that release.
š https://pypi.org/project/dagger-io/v0.18.4/ š https://dagger-io.readthedocs.io/en/sdk-python-v0.18.4/
Support defining interfaces in Python modules by @helderco in https://github.com/dagger/dagger/pull/8097
To define an interface, create a typing.Protocol class (PEP 0544), decorated with @dagger.interface:
@dagger.interface
class Duck(typing.Protocol):
Ā Ā @dagger.function
Ā Ā async def quack(self) -> str: ...
Learn more about Dagger interfaces in https://docs.dagger.io/api/interfaces