From 051b6f682f8bd288ca8e7bdbee889353d90f2a5a Mon Sep 17 00:00:00 2001 From: tgoddessana Date: Fri, 21 Mar 2025 20:31:12 +0900 Subject: [PATCH] Chore: remove coreapi/coreschema import from compat.py --- rest_framework/compat.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/rest_framework/compat.py b/rest_framework/compat.py index ff21bacff..7cf68168c 100644 --- a/rest_framework/compat.py +++ b/rest_framework/compat.py @@ -23,32 +23,20 @@ except ImportError: postgres_fields = None -# coreapi is required for CoreAPI schema generation -try: - import coreapi -except ImportError: - coreapi = None - -# uritemplate is required for OpenAPI and CoreAPI schema generation +# uritemplate is required for OpenAPI schema generation try: import uritemplate except ImportError: uritemplate = None -# coreschema is optional -try: - import coreschema -except ImportError: - coreschema = None - - # pyyaml is optional try: import yaml except ImportError: yaml = None + # inflection is optional try: import inflection