duplicate-value / W0130ΒΆ

Message emitted:

Duplicate value %r in set

Description:

This message is emitted when a set contains the same value two or more times.

Problematic code:

incorrect_set = {"value1", 23, 5, "value1"}  # [duplicate-value]

Correct code:

correct_set = {"value1", 23, 5}

Created by the basic checker.