From a2b079145fb94a6c24ae3561a390791816813901 Mon Sep 17 00:00:00 2001 From: Jukka Lehtosalo Date: Thu, 9 Apr 2020 15:57:21 +0100 Subject: [PATCH] Enable following imports in dmypy (--follow-imports=normal) We already have a bunch of tests that use this. Now enable it on the command line so that it's possible to start using this for real and to do interactive testing. Closes #5870. --- mypy/dmypy_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy/dmypy_server.py b/mypy/dmypy_server.py index c7f499ec9944b..62f3fdab44143 100644 --- a/mypy/dmypy_server.py +++ b/mypy/dmypy_server.py @@ -143,7 +143,7 @@ def process_start_options(flags: List[str], allow_sources: bool) -> Options: sys.exit("dmypy: start/restart should not disable incremental mode") # Our file change tracking can't yet handle changes to files that aren't # specified in the sources list. - if options.follow_imports not in ('skip', 'error'): + if options.follow_imports not in ('skip', 'error', 'normal'): sys.exit("dmypy: follow-imports must be 'skip' or 'error'") return options