From b8fd11488cf6dd00703721aa57b3c9dbc17db3f4 Mon Sep 17 00:00:00 2001 From: Jukka Lehtosalo Date: Thu, 26 Apr 2018 14:41:39 +0100 Subject: [PATCH] Update help text for --no-strict-optional Forgot to add these changes to #4971. --- mypy/main.py | 2 +- runtests.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mypy/main.py b/mypy/main.py index fe054d975dbab..965361b34c5f5 100644 --- a/mypy/main.py +++ b/mypy/main.py @@ -427,7 +427,7 @@ def add_invertible_flag(flag: str, parser.add_argument('--strict-optional', action='store_true', help=argparse.SUPPRESS) parser.add_argument('--no-strict-optional', action='store_false', dest='strict_optional', - help="disable strict Optional checks (inverse: --no-strict-optional)") + help="disable strict Optional checks (inverse: --strict-optional)") parser.add_argument('--strict-optional-whitelist', metavar='GLOB', nargs='*', help="suppress strict Optional errors in all but the provided files " "(experimental -- read documentation before using!). " diff --git a/runtests.py b/runtests.py index 527cf4db7f853..ad7b82f46f51f 100755 --- a/runtests.py +++ b/runtests.py @@ -273,6 +273,7 @@ def add_stdlibsamples(driver: Driver) -> None: seen.add(module) modules.append(module) if modules: + # TODO: Remove need for --no-strict-optional driver.add_mypy_modules('stdlibsamples (%s)' % (version,), modules, cwd=stdlibsamples_dir, extra_args=['--no-strict-optional'])