Last active
June 2, 2021 17:17
-
-
Save aherbst-broad/148c643d1bf245809fe854c3fd1a57ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@composite_solid | |
def upstream_composite_returning_nothing() -> Nothing: | |
pass | |
@solid | |
def upstream_returning_string() -> str: | |
return "something else" | |
@solid( | |
input_defs=[InputDefinition("start", Nothing), | |
InputDefinition("bar", String)] | |
) | |
def downstream_consuming_string(bar: str): | |
pass | |
@composite_solid( | |
input_defs=[InputDefinition("bar", String), | |
InputDefinition("start", Nothing)] | |
) | |
def downstream_composite(bar: str, start: Nothing): | |
downstream_consuming_string(bar, start=start) | |
@pipeline | |
def nothing_dependency_pipeline(): | |
real_string = upstream_returning_string() | |
downstream_composite(real_string, start=upstream_composite_returning_nothing()) | |
execute_pipeline(nothing_dependency_pipeline) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment