File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,9 @@ def process_options(args: List[str],
222
222
# which will make the cache writing process output pretty-printed JSON (which
223
223
# is easier to debug).
224
224
parser .add_argument ('--debug-cache' , action = 'store_true' , help = argparse .SUPPRESS )
225
+ parser .add_argument ('--hide-error-context' , action = 'store_true' ,
226
+ dest = 'hide_error_context' ,
227
+ help = argparse .SUPPRESS )
225
228
# deprecated options
226
229
parser .add_argument ('-f' , '--dirty-stubs' , action = 'store_true' ,
227
230
dest = 'special-opts:dirty_stubs' ,
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ def __init__(self) -> None:
73
73
# Apply strict None checking
74
74
self .strict_optional = False
75
75
76
+ # Hide "note: In function "foo":" messages.
77
+ self .hide_error_context = True
78
+
76
79
# Files in which to allow strict-Optional related errors
77
80
# TODO: Kill this in favor of show_none_errors
78
81
self .strict_optional_whitelist = None # type: Optional[List[str]]
@@ -111,7 +114,6 @@ def __init__(self) -> None:
111
114
self .incremental = False
112
115
self .cache_dir = defaults .CACHE_DIR
113
116
self .debug_cache = False
114
- self .hide_error_context = True # Hide "note: In function "foo":" messages.
115
117
self .shadow_file = None # type: Optional[Tuple[str, str]]
116
118
self .show_column_numbers = False # type: bool
117
119
You can’t perform that action at this time.
0 commit comments