https://pantsbuild.org/ logo
b

bored-art-40741

04/07/2021, 12:54 AM
That's with
Copy code
@dataclass(frozen=True)
class JavaTestFieldSet(TestFieldSet):
    required_fields = (JavaTestsSources,)

    sources: JavaTestsSources
h

hundreds-father-404

04/07/2021, 12:58 AM
Are you using from __future import annotations in your implementation? That breaks FieldSets 🤦‍♂️ Sorry for the gotcha
b

bored-art-40741

04/07/2021, 12:59 AM
Oh yup. For which module? Just where I define the FieldSet?
h

hundreds-father-404

04/07/2021, 12:59 AM
You can and should use it everywhere except for files that define FieldSets (And I should fix this)
b

bored-art-40741

04/07/2021, 1:02 AM
(Looks like yeah, just the FieldSet)