From efd1d38fb1db188e56fe6068ebe69d2164462b34 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Mon, 12 Sep 2022 23:27:02 -0700 Subject: [PATCH] [0.980 backport] Fix stubtest custom_typeshed_dir regression (#13656) (#13658) --- mypy/stubtest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mypy/stubtest.py b/mypy/stubtest.py index 378f61471437..a9eee4d1598a 100644 --- a/mypy/stubtest.py +++ b/mypy/stubtest.py @@ -1555,6 +1555,8 @@ def test_stubs(args: _Arguments, use_builtins_fixtures: bool = False) -> int: options = Options() options.incremental = False options.custom_typeshed_dir = args.custom_typeshed_dir + if options.custom_typeshed_dir: + options.abs_custom_typeshed_dir = os.path.abspath(args.custom_typeshed_dir) options.config_file = args.mypy_config_file options.use_builtins_fixtures = use_builtins_fixtures