Document that strict
does NOT override corresponding flags
#18760
Labels
strict
does NOT override corresponding flags
#18760
Documentation
With e.g.
implicit_reexport=True
andstrict=True
the effective value ofimplicit_reexport
isTrue
. It is right behaviour, I think, but it should be documented in https://mypy.readthedocs.io/en/latest/config_file.html#confval-strict and https://mypy.readthedocs.io/en/latest/command_line.html#cmdoption-mypy-strict.I.e. it should be clearly stated that if both
strict
and some strict-included flags are set, thenstrict
does not take precedence.Also, the phrase "enables all optional error checking flags" is very confusing.
strict
does not enable all optional flags, but a defined subset of them. Look at #7767 (comment) by @hauntsaninja :Maybe the phrase "enables all optional error checking flags" should be changed to aforementioned definition, or to something like "enables optional flags recommended by python devs", or just deleted.
The text was updated successfully, but these errors were encountered: