Skip to content

Failed to create fix for UnnecessaryMap: Should have two arguments #6951

@qarmin

Description

@qarmin

Ruff 0.0.286 (latest changes from main branch)

ruff  *.py --select ALL --no-cache

file content:

def ists2dict(keys, values):
   return dict(map(lambda k, v: (k, v), keys, values))

error:

error: Failed to create fix for UnnecessaryMap: Should have two arguments

_helpers-42522735449234892253272 (10th copy)044.py.zip

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfuzzerSurfaced via fuzzing.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions