From eba29f15fd9e590f2aab6c1d64828eb4400b0647 Mon Sep 17 00:00:00 2001 From: Yoann Date: Sat, 4 Dec 2021 17:11:57 +0100 Subject: [PATCH] Remove some typing for compatibility --- rest_framework/utils/json_patch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rest_framework/utils/json_patch.py b/rest_framework/utils/json_patch.py index ce5e10978..b1e028b46 100644 --- a/rest_framework/utils/json_patch.py +++ b/rest_framework/utils/json_patch.py @@ -1,5 +1,4 @@ from jsonpatch import ( - JsonPatch, InvalidJsonPatch, JsonPatchConflict, JsonPatchTestFailed, @@ -28,7 +27,7 @@ def filter_state(state, paths_parts): return filtered_state -def apply_json_patch(patch: JsonPatch, current_state: dict): +def apply_json_patch(patch, current_state): field = None try: # empty parts will raise JsonPointerException during apply()