From 9e398c59ab0e91346267c3fcac75ebd97d5b3346 Mon Sep 17 00:00:00 2001 From: Ahzam Ahmed <62069509+AhzamAhmed6@users.noreply.github.com> Date: Tue, 27 Sep 2022 20:08:40 +0500 Subject: [PATCH] Minor refactor: Unnecessary use of list() function (#8672) --- 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 722fc9b2b..cb880e79d 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 = list(description.splitlines()) + lines = description.splitlines() current_section = '' sections = {'': ''}