blob: 4f132d945e55cebd6692fb6ab05e5646102e1380 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
""" Dictionaries are reversible starting on python 3.8"""
# pylint: disable=missing-docstring
# This can't be detected since changes to locals aren't backported
reversed({'a': 1, 'b': 2})
class InheritDict(dict):
pass
reversed(InheritDict({'a': 1, 'b': 2})) # [bad-reversed-sequence]
|