Skip to content

Commit 9e398c5

Browse files
authored
Minor refactor: Unnecessary use of list() function (#8672)
1 parent 3e51ba4 commit 9e398c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/schemas/inspectors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def get_description(self, path, method):
8888
view.get_view_description())
8989

9090
def _get_description_section(self, view, header, description):
91-
lines = list(description.splitlines())
91+
lines = description.splitlines()
9292
current_section = ''
9393
sections = {'': ''}
9494

0 commit comments

Comments
 (0)