Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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