mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Remove some typing for compatibility
This commit is contained in:
parent
9ebd523592
commit
eba29f15fd
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user