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

hundreds-father-404

04/06/2022, 3:21 PM
You cannot use generic Python type hints in a rule's parameters or in a Get(). For example, a rule cannot return Optional[Foo], or take as a parameter Tuple[Foo, ...]. To express generic type hints, you should instead create a class that stores that value.
https://www.pantsbuild.org/docs/rules-api-concepts#valid-types