Skip to content

Commit

Permalink
Update help text for --no-strict-optional (#4974)
Browse files Browse the repository at this point in the history
Forgot to add these changes to #4971.
  • Loading branch information
JukkaL authored and gvanrossum committed Apr 26, 2018
1 parent c2bdbae commit d6a22cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!). "
Expand Down
1 change: 1 addition & 0 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])

Expand Down

0 comments on commit d6a22cf

Please sign in to comment.