sassoftware / python-sasctl

Unnecessary comprehension PTC-W0016
Performance
Major
7 months ago4 years old
Unnecessary comprehension - all can take a generator
208            else:
209                project = mr.get_project(models[0].projectId)
210            # Ensures that all models are in the same project
211            if not all([model.projectId == project.id for model in models]):212                raise ValueError(
213                    "Not all models are contained within the same project. Try "
214                    "specifying a project in the arguments and verify that all models"