Uploaded image for project: 'SonarPython'
  1. SonarPython
  2. SONARPY-292

UselessParenthesisAfterKeywordCheck should not raise issues on tuples

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The implementation of RSPEC-1721 should not raise issues when the parenthesis delimit a tuple, e.g.:

      my_tuple_list = [('foo', 'bar')]
      if ('foo', 'bar') in my_tuple_list: 
          print("True")
      

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              pierre-yves.nicolas Pierre-Yves Nicolas
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: