<#1171 fix workflow function name> Pull request op...
# flyte-github
a
#1171 fix workflow function name Pull request opened by stolarczyk The first code snippet in the "Environment setup" user guide calls and undefined function:
Copy code
from flytekit import task, workflow

@task
def say_hello() -> str:
    return "Hello, World!"

@workflow
def hello_world_wf() -> str:
    res = say_hello()
    return res

if __name__ == "__main__":
    print(f"Running my_wf() {my_wf()}")
Copy code
> python hello_world.py
Copy code
╭─────────────────────────────────────────────────────────────────────────── Traceback (most recent call last) ───────────────────────────────────────────────────────────────────────────╮
│ <path>/hello_world.py:16 in <module>                                                                                                                         │
│                                                                                                                                                                                         │
│ ❱ 16 │   print(f"Running my_wf() {my_wf()}")                                                                                                                                            │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
NameError: name 'my_wf' is not defined
This PR fixes the above issue. flyteorg/flytesnacks ✅ All checks have passed 3/3 successful checks