File: //usr/local/lib/python3.10/dist-packages/__pycache__/jsonpatch.cpython-310.pyc
o
���gRt � @ s d Z ddlmZ ddlZddlZddlZddlZddlZzddlm Z W n e
y3 ddlm Z Y nw zddlmZ W n e
yG e
ZY nw ddlmZmZ dZdZz
ddlmZmZ W n e
yq ddlmZmZ eZY nw d Zd
ZdZdZejd
kr�eefZG dd� de�ZG dd� de�Z G dd� de�Z!G dd� dee"�Z#dd� Z$ej%ej&e$d�Z'defdd�Z(efdd�Z)G dd� de*�Z+G d d!� d!e+�Z,G d"d#� d#e+�Z-G d$d%� d%e+�Z.G d&d'� d'e+�Z/G d(d)� d)e+�Z0G d*d+� d+e+�Z1G d,d-� d-e*�Z2G d.d/� d/e*�Z3d0d1� Z4dS )2z Apply JSON-Patches (RFC 6902) � )�unicode_literalsN)�Sequence)�MappingProxyType)�JsonPointer�JsonPointerException� )�MutableMapping�MutableSequenceu Stefan Kögl <stefan@skoegl.net>z1.33z0https://github.com/stefankoegl/python-json-patchzModified BSD License)� r c @ � e Zd ZdZdS )�JsonPatchExceptionzBase Json Patch exceptionN��__name__�
__module__�__qualname__�__doc__� r r �4/usr/local/lib/python3.10/dist-packages/jsonpatch.pyr P � r c @ r )�InvalidJsonPatchz, Raised if an invalid JSON Patch is created Nr
r r r r r T r r c @ r )�JsonPatchConflicta
Raised if patch could not be applied due to conflict situation such as:
- attempt to add object key when it already exists;
- attempt to operate with nonexistence object key;
- attempt to insert value to array at position beyond its size;
- etc.
Nr
r r r r r X r r c @ r )�JsonPatchTestFailedz A Test operation failed Nr
r r r r r a r r c C s<