Skip to content

S607 doesn't validate for tuple values #24075

@nelsyeung

Description

@nelsyeung

Summary

When using a tuple (i.e., (...,)), it doesn't give S607 (Playground):

import subprocess

subprocess.run(("echo", "foo"))

but using a list (i.e., [..., ...]) does (Playground):

import subprocess

subprocess.run(["echo", "foo"])

I mentioned multiple values, because if there's only one element in the tuple, it'll give S607 (Playground):

import subprocess

subprocess.run(("echo"))

Version

0.15.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions