shy-advantage-49800
08/05/2023, 8:58 AMskip_mypy
on the BUILD)fast-nail-55400
08/05/2023, 9:00 AMoverrides
attribute on the relevant target to override skip_mypy
for only the file you want. https://www.pantsbuild.org/docs/reference-python_sources#codeoverridescodefast-nail-55400
08/05/2023, 9:01 AMpython_sources
is a "generator target" which generates individual python_source
targets.fast-nail-55400
08/05/2023, 9:02 AMskip_mypy
just for the applicable python_source
target.shy-advantage-49800
08/05/2023, 9:03 AMshy-advantage-49800
08/05/2023, 9:08 AMpython_sources(
overrides={
"render_messages.py": {"skip_mypy": True}
}
)
Is this supposed to work?shy-advantage-49800
08/05/2023, 9:13 AMfollow-imports
. Thanks! 🙏