Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 340 Bytes

implicit-str-concat.md

File metadata and controls

21 lines (13 loc) · 340 Bytes

Pattern: Implicitly concatenated string literal

Issue: -

Description

String literals are implicitly concatenated in a literal iterable definition.

Example of incorrect code:

TEST_LIST = ['a' 'b']  # [implicit-str-concat]

Example of correct code:

# No warning for bytes
TEST_LIST = [b'A' b'B']