diff options
Diffstat (limited to 'doc/data/messages/i/implicit-str-concat/details.rst')
-rw-r--r-- | doc/data/messages/i/implicit-str-concat/details.rst | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/data/messages/i/implicit-str-concat/details.rst b/doc/data/messages/i/implicit-str-concat/details.rst index c1e136183..f09d48110 100644 --- a/doc/data/messages/i/implicit-str-concat/details.rst +++ b/doc/data/messages/i/implicit-str-concat/details.rst @@ -1,6 +1,5 @@ By default, detection of implicit string concatenation of line jumps is disabled. Hence the following code will not trigger this rule: -Hence the following code will not trigger this rule: .. code-block:: python @@ -13,3 +12,15 @@ In order to detect this case, you must enable `check-str-concat-over-line-jumps` [STRING_CONSTANT] check-str-concat-over-line-jumps = yes + +However, the drawback of this setting is that it will trigger false positive +for string parameters passed on multiple lines in function calls: + +.. code-block:: python + + warnings.warn( + "rotate() is deprecated and will be removed in a future release. " + "Use the rotation() context manager instead.", + DeprecationWarning, + stacklevel=3, + ) |