Thanks to visit codestin.com
Credit goes to github.com

Skip to content

RUF040 misses list literal #16773

Description

@de-odex

Summary

this code doesn't seem to trigger RUF040:

assert ["aaa", "111"], ["abc", "123"]

https://play.ruff.rs/aa462838-caaa-4b6c-8503-4bb09c238d5a

i'm not sure if this is intentional.

Version

ruff 0.11.0 (2cd25ef 2025-03-14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ruleImplementing or modifying a lint rulewishNot on the current roadmap; maybe in the future

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions