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

narrow-vegetable-37489

04/06/2022, 3:18 PM
Can a
@rule
"sometimes" return something (aka
typing.Optional
)? I assume not since rules are meant to return one specific type. The reason I'm asking is because I'm trying to tackle the suggested changes from @witty-crayon-22786 in #13757, but I'm running into some exceptions when exposing
get_git
as a rule since it currently returns
Git | None
.