Benjamin Rapaport
01/25/2025, 10:56 PMpython
from prefect import flow, task
@task
def print_hello(name):
print(f"Hello {name}!")
@flow(name="Hello Flow")
def hello_world(name="world"):
print_hello(name)
The call in the hello_world
flow to print_hello(name)
reports the following error:
No overloads for "__call__" match the provided arguments
Argument types: (str)Pylance[reportCallIssue]
This error persists, even when pylance is set to 'basic' Type Checking Mode.Marvin
01/25/2025, 10:56 PMBenjamin Rapaport
01/25/2025, 10:56 PMBenjamin Rapaport
01/25/2025, 10:57 PMMarvin
01/25/2025, 10:57 PM