Slackbot
02/15/2023, 3:51 PMElijah Ben Izzy
02/15/2023, 4:00 PMdef some_data() -> int:
# dummy function -- this can work with whatever types you want
return 1
# Then, somewhere else...
# Note that the parameter name corresponds to the function above
# That's how you tell Hamilton to use the prior function
def data_based_on_the_data_above(some_data: int) -> int:
return some_data + 1
Does this make sense? Basically this is the whole reason we have hamilton — you use the parameter names to “inject” and chain them together.