Today I found the following code:
self.frame_buffer = deque([], self.frame_buffer_size)
Which, to my understanding, should be the same as
self.frame_buffer = deque(maxlen=self.frame_buffer_size)
(but w/o an extra empty literal, be it a list, tuple, set, etc)
Same with x = deque([])/x = deque(()) --> x = deque()
There may be more collection types for which this idea applies.
I think this could be enforced by a linting rule.