Open kaos opened 3 days ago
Any other types we should include? Like QueryRule
?
Rules = TypeAlias[Iterable[Rule | UnionRule | QueryRule]]
Any other types we should include? Like
QueryRule
?Rules = TypeAlias[Iterable[Rule | UnionRule | QueryRule]]
That's not needed, as the QueryRule
satisfies the Rule
Protocol:
https://github.com/pantsbuild/pants/blob/50a4e75b69321f3a2d3cb110433144c7f586ae38/src/python/pants/engine/rules.py#L408-L417
https://github.com/pantsbuild/pants/blob/50a4e75b69321f3a2d3cb110433144c7f586ae38/src/python/pants/engine/rules.py#L484-L492
_Originally posted by @kaos in https://github.com/pantsbuild/pants/pull/21124#discussion_r1663685655_