Avoid implicit string concatenation

Missing commas in tuples results in implicit string concatenation. Probably not what you intended to do.

Implicit string concatenation that resulted from a typo can change the behaviour of the application. Take for example:

is_positive('agreed') evaluates to False because a typo resulted in the comma being missed from the end of 'affirmative', resulting in 'affirmative' and 'agreed' being implicitly concatenated to 'affirmativeagreed'.

If our GitHub code review bot spots this issue in your pull request it gives this advice:

code-review-doctorbotsuggested changes just now
validation.py
1
+
values = (
2
+
    'yes',
3
+
    'correct'

Missing commas in tuples results in implicit string concatenation. Probably not what you intended to do.

Read more
Suggested changes
-
    'correct'
+
    'correct',
Expand 2 lines ...
Commit suggestion
4
+
    'agreed',
5
+
)
Update validation.py

Instantly check if you have this issue for free

    Works with tools you use

    Read about how it works.