You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
show_error_context does not work in config file #2964
Looks like the name was changed from hide_error_context, but was unchanged internally. Since the config file settings are copied directly into options the following ini will fail with mypy.ini: [mypy]: Unrecognized option: show_error_context = True
[mypy]
show_error_context = True
hide_error_context = False works as expected.
Possible fix: refactor the internal name to match the external one.
Hm, this comment suggests that we thought about changing it but then dropped the thought. The docs state that it's named show_error_context, and I think that should prevail, regardless of backwards compatibility.
Activity
gvanrossum commentedon Mar 5, 2017
Thanks, good catch. Do you feel comfortable sending a PR yourself?
tyehle commentedon Mar 5, 2017
Probably, but from #2545 it looks like the name wasn't changed for backward compatibility.
gvanrossum commentedon Mar 5, 2017
Hm, this comment suggests that we thought about changing it but then dropped the thought. The docs state that it's named
show_error_context, and I think that should prevail, regardless of backwards compatibility.Change hide_error_context to show_error_context (#2965)