From 573240e74512e203f29f314af14148b2a488b4e4 Mon Sep 17 00:00:00 2001 From: Willem Van Onsem Date: Wed, 9 Apr 2025 12:51:18 +0200 Subject: [PATCH] rewrite import --- rest_framework/schemas/coreapi.py | 5 ++++- rest_framework/schemas/openapi.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/rest_framework/schemas/coreapi.py b/rest_framework/schemas/coreapi.py index 41f3155c5..4a1ecc0f2 100644 --- a/rest_framework/schemas/coreapi.py +++ b/rest_framework/schemas/coreapi.py @@ -11,7 +11,10 @@ from rest_framework.settings import api_settings from .generators import BaseSchemaGenerator from .inspectors import ViewInspector -from .utils import get_pk_description, is_list_view, ALLOW_FILTER_ACTIONS, ALLOW_FILTER_METHODS +from .utils import ( + ALLOW_FILTER_ACTIONS, ALLOW_FILTER_METHODS, get_pk_description, + is_list_view +) def common_path(paths): diff --git a/rest_framework/schemas/openapi.py b/rest_framework/schemas/openapi.py index c7f5d3a7b..b84702fe8 100644 --- a/rest_framework/schemas/openapi.py +++ b/rest_framework/schemas/openapi.py @@ -18,7 +18,10 @@ from rest_framework.settings import api_settings from .generators import BaseSchemaGenerator from .inspectors import ViewInspector -from .utils import get_pk_description, is_list_view, ALLOW_FILTER_ACTIONS, ALLOW_FILTER_METHODS +from .utils import ( + ALLOW_FILTER_ACTIONS, ALLOW_FILTER_METHODS, get_pk_description, + is_list_view +) class SchemaGenerator(BaseSchemaGenerator):