How can I check, what's the version of a backend i...
# general
b
How can I check, what's the version of a backend in pants? Specifically I want to check, which
mypy
version it is using.
b
What version of pants are you using?
• For versions 2.22 (currently in pre-release) or newer, it's visible on the docs page https://www.pantsbuild.org/2.22/reference/subsystems/mypy or via
pants help mypy
("This version of Pants uses
mypy
version 1.4.1 by default") • For versions 2.21 and earlier, you have to find the relevant section of the built-in lockfile: e.g. for 2.21.0: https://github.com/pantsbuild/pants/blob/release_2.21.0/src/python/pants/backend/python/typecheck/mypy/mypy.lock#L138-L150 (also 1.4.1)