diff options
3 files changed, 16 insertions, 2 deletions
diff --git a/doc/data/messages/m/missing-parentheses-for-call-in-test/bad.py b/doc/data/messages/m/missing-parentheses-for-call-in-test/bad.py new file mode 100644 index 000000000..3f67322dc --- /dev/null +++ b/doc/data/messages/m/missing-parentheses-for-call-in-test/bad.py @@ -0,0 +1,8 @@ +import random + + +def is_it_a_good_day(): + return random.choice([True, False]) + +if is_it_a_good_day: # [missing-parentheses-for-call-in-test] + print("Today is a good day!") diff --git a/doc/data/messages/m/missing-parentheses-for-call-in-test/details.rst b/doc/data/messages/m/missing-parentheses-for-call-in-test/details.rst deleted file mode 100644 index ab8204529..000000000 --- a/doc/data/messages/m/missing-parentheses-for-call-in-test/details.rst +++ /dev/null @@ -1 +0,0 @@ -You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ ! diff --git a/doc/data/messages/m/missing-parentheses-for-call-in-test/good.py b/doc/data/messages/m/missing-parentheses-for-call-in-test/good.py index c40beb573..63c8ccc89 100644 --- a/doc/data/messages/m/missing-parentheses-for-call-in-test/good.py +++ b/doc/data/messages/m/missing-parentheses-for-call-in-test/good.py @@ -1 +1,8 @@ -# This is a placeholder for correct code for this message. +import random + + +def is_it_a_good_day(): + return random.choice([True, False]) + +if is_it_a_good_day(): + print("Today is a good day!") |