From 73f4835a531d7a192946ab8da9e06ef184cb1119 Mon Sep 17 00:00:00 2001 From: Ahzam Ahmed <62069509+AhzamAhmed6@users.noreply.github.com> Date: Mon, 26 Sep 2022 17:05:53 +0500 Subject: [PATCH] Unnecessary list comprehension (#8670) --- rest_framework/schemas/inspectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/schemas/inspectors.py b/rest_framework/schemas/inspectors.py index 027472db1..722fc9b2b 100644 --- a/rest_framework/schemas/inspectors.py +++ b/rest_framework/schemas/inspectors.py @@ -88,7 +88,7 @@ class ViewInspector: view.get_view_description()) def _get_description_section(self, view, header, description): - lines = [line for line in description.splitlines()] + lines = list(description.splitlines()) current_section = '' sections = {'': ''}