From 43c84c79bc109c02b6a7eef8b2e59647e6cf0cfa Mon Sep 17 00:00:00 2001 From: wyattscarpenter Date: Fri, 26 Sep 2025 19:59:41 -0400 Subject: [PATCH 1/2] Document MYPY_FORCE_COLOR and FORCE_COLOR in --help Partially resolves https://github.com/python/mypy/issues/13815. Only partially because the rst documentation should also mention this, which I haven't done yet because the natural home for that mention is in a page that we haven't created yet (imo). This commit also does not test this feature. --- mypy/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mypy/main.py b/mypy/main.py index 9ebbf78ded09..48eaf442fb57 100644 --- a/mypy/main.py +++ b/mypy/main.py @@ -367,7 +367,10 @@ def infer_python_executable(options: Options, special_opts: argparse.Namespace) FOOTER: Final = """Environment variables: Define MYPYPATH for additional module search path entries. - Define MYPY_CACHE_DIR to override configuration cache_dir path.""" + Define MYPY_CACHE_DIR to override configuration cache_dir path. + Define MYPY_FORCE_COLOR (or, failing that, FORCE_COLOR) to a non-zero integer + (or any non-empty non-integer string) to force mypy to output in color. + """ class CapturableArgumentParser(argparse.ArgumentParser): From 4dd6cbbfc2ba1bb79526402d417f32764639470a Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Sat, 27 Sep 2025 01:12:52 -0700 Subject: [PATCH 2/2] retrigger primer