Remove some typing for compatibility

This commit is contained in:
Yoann 2021-12-04 17:11:57 +01:00
parent 9ebd523592
commit eba29f15fd

View File

@ -1,5 +1,4 @@
from jsonpatch import ( from jsonpatch import (
JsonPatch,
InvalidJsonPatch, InvalidJsonPatch,
JsonPatchConflict, JsonPatchConflict,
JsonPatchTestFailed, JsonPatchTestFailed,
@ -28,7 +27,7 @@ def filter_state(state, paths_parts):
return filtered_state return filtered_state
def apply_json_patch(patch: JsonPatch, current_state: dict): def apply_json_patch(patch, current_state):
field = None field = None
try: try:
# empty parts will raise JsonPointerException during apply() # empty parts will raise JsonPointerException during apply()