> You cannot use generic Python type hints in a...
# development
h
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