pylint-errors

E0111 (bad-reversed-sequence)

:x: Problematic code:

reversed({'key': 1, 'key2': 2})

:heavy_check_mark: Correct code:

reversed([1, 2, 3])

Rationale:

The first reversed() argument is not a sequence. Used when the first argument to reversed() builtin isn’t a sequence (does not implement __reversed__, nor __getitem__ and __len__.