Closed zshipko closed 2 months ago
without much more context on the subject beyond what you've shared, I think the decorator sounds good, particularly since it's also how we (optionally?) declare host functions from the Python SDK
agreed, i think that looks like the least hacky way to handle imports
Python doesn't have a clear way to specify these, I am considering a couple different approaches:
Python decorator
Import comments, something like
Putting imports into a separate JSON file - this is not a great option since it makes imports appear out of nowhere in the source
I'm currently leaning toward using a decorator since it seems like the cleanest integration, and should be pretty easy to parse.