quaint-telephone-89068
04/09/2026, 11:11 AMfoo.py and foo_test.py in the repo, with the test importing the foo module
• delete foo.py
• run pants --changed-since=main --changed-dependents=transitive check
Expected behavior:
• type checking should run on foo_test.py and should fail due to the unknown import of foo
Actual behavior:
• pants prints a warning about being unable to infer the dependencies of the foo import, but the check goal succeeds
The same problem applies to `pants test`: I expect foo_test.py to be executed, but it is not.
Pants version
2.31.0.dev3 with the pants.backend.experimental.python.typecheck.pyright backend
OS
tested on Linux
pantsbuild/pantsquaint-telephone-89068
05/05/2026, 8:51 PM