Chris Gunderson
09/28/2022, 6:34 PMfrom pydantic import BaseModel
class CustomList(BaseModel):
data: list[str]
@flow(name = "Fidelity Allocations")
def FidelityAllocationsFlow(toEmail: CustomList):
#code....
if __name__ == "__main__":
emailAddress = CustomList(data=['<mailto:cgunderson@spiderrockadvisors.com|cgunderson@spiderrockadvisors.com>'])
FidelityAllocationsFlow(toEmail=emailAddress)
Mason Menges
09/28/2022, 6:38 PMChris Gunderson
09/28/2022, 6:52 PMMason Menges
09/28/2022, 6:55 PMChris Gunderson
09/28/2022, 6:59 PMMason Menges
09/28/2022, 7:02 PMfrom prefect import flow
from typing import List
@flow
def test_flow(custom_list: List = ["somedefaultemails"]):
print("do_something")
If that makes senseChris Gunderson
09/28/2022, 7:04 PM