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
3 changes: 3 additions & 0 deletions mypy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ def process_options(args: List[str],
# which will make the cache writing process output pretty-printed JSON (which
# is easier to debug).
parser.add_argument('--debug-cache', action='store_true', help=argparse.SUPPRESS)
parser.add_argument('--hide-error-context', action='store_true',
dest='hide_error_context',
help=argparse.SUPPRESS)
# deprecated options
parser.add_argument('-f', '--dirty-stubs', action='store_true',
dest='special-opts:dirty_stubs',
Expand Down
4 changes: 3 additions & 1 deletion mypy/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def __init__(self) -> None:
# Apply strict None checking
self.strict_optional = False

# Hide "note: In function "foo":" messages.
self.hide_error_context = True

# Files in which to allow strict-Optional related errors
# TODO: Kill this in favor of show_none_errors
self.strict_optional_whitelist = None # type: Optional[List[str]]
Expand Down Expand Up @@ -111,7 +114,6 @@ def __init__(self) -> None:
self.incremental = False
self.cache_dir = defaults.CACHE_DIR
self.debug_cache = False
self.hide_error_context = True # Hide "note: In function "foo":" messages.
self.shadow_file = None # type: Optional[Tuple[str, str]]
self.show_column_numbers = False # type: bool

Expand Down