#Hello everyone. ๐Ÿ‘‹ First post here!

1 messages ยท Page 1 of 1 (latest)

hybrid blaze
#

Hey ๐Ÿ‘‹

#

At first glance, dag.Helm isn't a valid return type. dag is an instance of a dagger.Client. The type is at dagger.Helm. That explains your error.

However, if that type comes from a dependency, you can't return types from dependencies. Only types that your module defines.

autumn obsidian
hybrid blaze
#

We'll fix that, thanks.

#

They're automatically generated.

autumn obsidian
#

Of course ๐Ÿ™‚ . What would be the proper return type then? Anything but an external type from the dependency?

hybrid blaze
#

Yes, basically.

#

With "anything" being under what Dagger supports, not what Python supports.

autumn obsidian
#

Sure.

#

THx a bunch @hybrid blaze I was very much stuck.

#

๐Ÿ™‡โ€โ™‚๏ธ

#

(supposed to be a man bowing ๐Ÿ™‚ )

somber birch
hybrid blaze
#

The correct prefix is dagger. but since the other SDKs don't have that prefix, it can also be removed from Python.

#

Or add it everywhere since it can be clearer for users.

somber birch
#

oh! not the client object dag, but this bit in the signature
def func() -> dag.Helm:
the dag.Helm

hybrid blaze
#

Yep

somber birch
#

@autumn obsidian thanks for the report. Fixed in Daggerverse!