https://pantsbuild.org/ logo
#development
Title
# development
h

happy-kitchen-89482

10/25/2019, 10:37 PM
so I guess in this scenario we'd need to have a sentinel value that is of the
Foo
type.
a

aloof-angle-91616

10/25/2019, 10:40 PM
this is what
@union
does, i believe
not sure if i'm misunderstanding the use case
as in, i have, this week, when implementing `@rule`s, have converted ones returning
Optional[T]
into `UnionRule`s
especially after https://github.com/pantsbuild/pants/pull/8542, but i've been thinking more about that
returning
Optional[T]
is really interesting
i think i would prefer the engine in general to be able to support things that make sense in normal python