deepsourcestatus / test-repository

Unnecessary comprehension PTC-W0016
Performance
Major
1 occurrence in this check
Unnecessary comprehension - all can take a generator
 40
 41    def get_number(self, min_max=[1, 10]):
 42        """Get a random number between min and max."""
 43        assert all([isinstance(i, int) for i in min_max]) 44        return random.randint(*min_max)
 45
 46