#with the python object support in 0.9.2

1 messages · Page 1 of 1 (latest)

cyan smelt
#
import dagger
from dagger.mod import Annotated, Doc, field, function, object_type


@object_type
class Test:
    """Blahblahblah"""

    @function
    def foo(self) -> str:
        return "yo"

My module name is test, so then I'm able to call that w/ dagger call foo