hundreds-father-404
03/11/2020, 4:04 PMtype_checked to python_library.
Do we care about being able to replace a pre-existing field on a core target type with your own custom implementation? Do we want to allow you to replace how compatibility and sources behave for something like python_library? Or, would you need to create a new target type like python3_library, python23_library, and python2_library in order to override a field already defined on that target?hundreds-father-404
03/11/2020, 4:05 PMwitty-crayon-22786
03/11/2020, 4:05 PMhundreds-father-404
03/11/2020, 4:10 PMCompatibility to always work a certain way, we rely on that assumption throughout the codebase.
Users being able to override the field so that now, for example, it stores a bool rather than List[str], would break a bunch of code.
In contrast, adding a new field is safe because core Pants will simply ignore that fieldwitty-crayon-22786
03/11/2020, 4:11 PMwitty-crayon-22786
03/11/2020, 4:12 PMwitty-crayon-22786
03/11/2020, 4:12 PMwitty-crayon-22786
03/11/2020, 4:13 PM