<@U04EATBG0E8> how should I use decorators when us...
# ask-marvin
t
@ask-marvin how should I use decorators when using Prefect?
a
Let me check that for you @Thomas E
The easiest way is to just use the
with
statement.
Copy code
with flow() as f:             print(f())
t
ok @ask-marvin say more about that
a
Let me check that for you @Thomas E
Hi! I am a Prefect assistant. How can I help you today?
t
ok ok I'm learning too Marv
@ask-marvin can you give me an example of using prefect blocks?
a
Let me check that for you @Thomas E
j
@Thomas E this isn’t chatgpt… yet
t
YET
j
silly marvin, that’s a Prefect 1 idiom
Definitely in the running for swag