#Interesting. Moving it got me to a new

1 messages ยท Page 1 of 1 (latest)

tranquil pagoda
#

We need to send out the Helder signal ๐Ÿ˜‚ But it's late for him so won't ping right now

gleaming bronze
#

I might cheat off of the sdk real quick, there's probably some good stuff in there

gleaming bronze
gleaming bronze
#

@gaunt solstice any idea on this one ๐Ÿ‘†

#

(just the last message)

gaunt solstice
#

On the first one, not sure if it has been clarified but the python file is evaluated in order top to bottom. So you need to define Proxy before it needs to be used, or do what I think you came up with which is put it in strings to make a forward reference. I prefer just defining before needed.

#

Looking at the last message.

#

That's interesting. I know where the error is coming from but I don't understand why it's doing that.

#

I mean, I think I do.

#

You're missing self in those methods.

#

If you don't need to access self properties, you can just define them as top-level functions though.

gleaming bronze
#

Ah, like the first arg should be self

#

that was it, THANK YOU!

gaunt solstice
#

Yes. You must be getting an instance of Proxy() as the name in with_service?

#

That should error.

gaunt solstice
#

๐Ÿ‘

gleaming bronze
#

dont know what to make of this one

tranquil pagoda
#

It's a bug in third party lib

gleaming bronze
#

Ahhhh thanks, missed that

#

yaassss it all works ๐ŸŽ‰

gaunt solstice
#

I got a fix for that locally.

#

By the way, you should change default=init() to default=init. It's no issue here since the dagger types are immutable, but it can trip in other cases if you get used to it or others copy from it.

gleaming bronze
gaunt solstice
#

It's ok to have defaults in Python, just have to be careful that they're immutable. If not, it's best to default to None and do if ctr is None like you say. In the class args it's less of an issue because you have the callable factory. Meaning instead of values: list[str] = [] you do values: list[str] = field(default=list).

#

Dagger types are immutable.