Hey pants folks - is it possible for a target to m...
# general
r
Hey pants folks - is it possible for a target to match more than one type in a union? Example that illustrates what I mean
Copy code
union_members = (
        request_type.create(dep) 
        for dep in direct_deps
        for request_type in union_membership[MyUnionFieldSet]
        if request_type.is_applicable(dep)
    )
b
I don't see why not? Consider a
python_source
which likely matches the unions for each and every `lint`er and `fix`er
r
That's what I figured but wanted to make sure before I wrote a bunch of code checking for duplicate addresses 😅