From 759383a90d973369f782a2b911e79d60f1c48751 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Mon, 4 Nov 2024 13:56:50 +0300 Subject: [PATCH 1/3] Update `config_file` docs --- docs/source/config_file.rst | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/docs/source/config_file.rst b/docs/source/config_file.rst index ded8476b60e3..03204faf65f7 100644 --- a/docs/source/config_file.rst +++ b/docs/source/config_file.rst @@ -717,6 +717,14 @@ section of the command line docs. Note: This option will override disabled error codes from the disable_error_code option. +.. confval:: extra_checks + + :type: boolean + :default: False + + This flag enables additional checks that are technically correct but may be impractical in real code. + See :option:`--extra-checks` for more info. + .. confval:: implicit_reexport :type: boolean @@ -744,25 +752,28 @@ section of the command line docs. Make arguments prepended via ``Concatenate`` be truly positional-only. + .. warning:: + Deprecated: use :confval:`extra_checks` instead. + .. confval:: strict_equality :type: boolean :default: False - Prohibit equality checks, identity checks, and container checks between - non-overlapping types. + Prohibit equality checks, identity checks, and container checks between + non-overlapping types. .. confval:: strict :type: boolean :default: False - Enable all optional error checking flags. You can see the list of - flags enabled by strict mode in the full :option:`mypy --help` - output. + Enable all optional error checking flags. You can see the list of + flags enabled by strict mode in the full :option:`mypy --help` + output. - Note: the exact list of flags enabled by :confval:`strict` may - change over time. + Note: the exact list of flags enabled by :confval:`strict` may + change over time. Configuring error messages From 480d7954f0ae12e9a9d4e344aa3bfe1ca5c73858 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Mon, 4 Nov 2024 14:02:53 +0300 Subject: [PATCH 2/3] Update config_file.rst --- docs/source/config_file.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/config_file.rst b/docs/source/config_file.rst index 03204faf65f7..5857ce08e12a 100644 --- a/docs/source/config_file.rst +++ b/docs/source/config_file.rst @@ -723,7 +723,7 @@ section of the command line docs. :default: False This flag enables additional checks that are technically correct but may be impractical in real code. - See :option:`--extra-checks` for more info. + See :option:`mypy --extra-checks` for more info. .. confval:: implicit_reexport From 94fc7cc42ad30adf4ea0bf746295b0f26b6c5603 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Mon, 4 Nov 2024 14:23:26 +0300 Subject: [PATCH 3/3] Update config_file.rst --- docs/source/config_file.rst | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/docs/source/config_file.rst b/docs/source/config_file.rst index 5857ce08e12a..310d0c3dbcb1 100644 --- a/docs/source/config_file.rst +++ b/docs/source/config_file.rst @@ -747,33 +747,30 @@ section of the command line docs. .. confval:: strict_concatenate - :type: boolean - :default: False - - Make arguments prepended via ``Concatenate`` be truly positional-only. + :type: boolean + :default: False - .. warning:: - Deprecated: use :confval:`extra_checks` instead. + Make arguments prepended via ``Concatenate`` be truly positional-only. .. confval:: strict_equality - :type: boolean - :default: False + :type: boolean + :default: False - Prohibit equality checks, identity checks, and container checks between - non-overlapping types. + Prohibit equality checks, identity checks, and container checks between + non-overlapping types. .. confval:: strict - :type: boolean - :default: False + :type: boolean + :default: False - Enable all optional error checking flags. You can see the list of - flags enabled by strict mode in the full :option:`mypy --help` - output. + Enable all optional error checking flags. You can see the list of + flags enabled by strict mode in the full :option:`mypy --help` + output. - Note: the exact list of flags enabled by :confval:`strict` may - change over time. + Note: the exact list of flags enabled by :confval:`strict` may + change over time. Configuring error messages