+
    8iC3                        R t ^ RIHt ^ RIHtHtHtHtHt ^ RI	H
t
  ! R R4      t ! R R]4      t ! R R	]4      t ! R
 R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      tR# )z{Result class definitions.

.. seealso:: This module is compatible with both the synchronous and asynchronous PyMongo APIs.
)annotations)AnyMappingMutableMappingOptionalcast)InvalidOperationc                  X    ] tR t^tRtR
tR R ltR R ltR R lt]	R R	 l4       t
R
tR# )_WriteResultz$Base class for write result classes.c                    V ^8  d   QhRRRR/# )   acknowledgedboolreturnNone )formats   "M/var/www/html/photoedit/myenv/lib/python3.14/site-packages/pymongo/results.py__annotate___WriteResult.__annotate__   s     + +T +d +    c                	    Wn         R # N_WriteResult__acknowledged)selfr   s   &&r   __init___WriteResult.__init__   s    *r   c                   V ^8  d   QhRR/# r   r   strr   )r   s   "r   r   r   "   s     C C# Cr   c                	N    V P                   P                   R V P                   R2# )())	__class____name__r   r   s   &r   __repr___WriteResult.__repr__"   s'    ..))*!D,?,?+@BBr   c                    V ^8  d   QhRRRR/# r   property_namer    r   r   r   )r   s   "r   r   r   %   s      c d r   c                H    V P                   '       g   \        RV R24      hR# )z8Raise an exception on property access if unacknowledged.A value for zi is not available when the write is unacknowledged. Check the acknowledged attribute to avoid this error.N)r   r   r   r+   s   &&r   _raise_if_unacknowledged%_WriteResult._raise_if_unacknowledged%   s1    """"}o .   #r   c                   V ^8  d   QhRR/# r   r   r   r   )r   s   "r   r   r   0   s     # #d #r   c                    V P                   # )a  Is this the result of an acknowledged write operation?

The :attr:`acknowledged` attribute will be ``False`` when using
``WriteConcern(w=0)``, otherwise ``True``.

.. note::
  If the :attr:`acknowledged` attribute is ``False`` all other
  attributes of this class will raise
  :class:`~pymongo.errors.InvalidOperation` when accessed. Values for
  other attributes cannot be determined if the write operation was
  unacknowledged.

.. seealso::
  :class:`~pymongo.write_concern.WriteConcern`
r   r&   s   &r   r   _WriteResult.acknowledged/   s    " """r   )__acknowledgedN)r%   
__module____qualname____firstlineno____doc__	__slots__r   r'   r/   propertyr   __static_attributes__r   r   r   r
   r
      s.    .#I+C # #r   r
   c                  X   a  ] tR t^CtRtRtR V 3R lltR R lt]R R l4       t	Rt
V ;t# )	InsertOneResultzThe return type for :meth:`~pymongo.collection.Collection.insert_one`
and as part of :meth:`~pymongo.mongo_client.MongoClient.bulk_write`.
c               $    V ^8  d   QhRRRRRR/# )r   inserted_idr   r   r   r   r   r   )r   s   "r   r   InsertOneResult.__annotate__J   s!     ' 'C 't ' 'r   c                	2   < Wn         \        SV `	  V4       R # r   )_InsertOneResult__inserted_idsuperr   )r   r@   r   r$   s   &&&r   r   InsertOneResult.__init__J   s    (&r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   rA   N        
 
# 
r   c                	j    V P                   P                   R V P                  : RV P                   R2# r"   z, acknowledged=r#   )r$   r%   rC   r   r&   s   &r   r'   InsertOneResult.__repr__N   s7    ~~&&'q););(>odN_N_M``ab	
r   c                   V ^8  d   QhRR/# r   r   r   r   )r   s   "r   r   rA   T   s     " "S "r   c                    V P                   # )zThe inserted document's _id.)rC   r&   s   &r   r@   InsertOneResult.inserted_idS   s     !!!r   )__inserted_id)r%   r6   r7   r8   r9   r:   r   r'   r;   r@   r<   __classcell__r$   s   @r   r>   r>   C   s2     #I' '

 " "r   r>   c                  X   a  ] tR t^YtRtRtR V 3R lltR R lt]R R l4       t	Rt
V ;t# )	InsertManyResultzGThe return type for :meth:`~pymongo.collection.Collection.insert_many`.c               $    V ^8  d   QhRRRRRR/# )r   inserted_ids	list[Any]r   r   r   r   r   )r   s   "r   r   InsertManyResult.__annotate__^   s!     ' 'Y 'd 't 'r   c                	2   < Wn         \        SV `	  V4       R # r   )_InsertManyResult__inserted_idsrD   r   )r   rU   r   r$   s   &&&r   r   InsertManyResult.__init__^   s    *&r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   rW   b   rG   r   c                	j    V P                   P                   R V P                  : RV P                   R2# rI   )r$   r%   rY   r   r&   s   &r   r'   InsertManyResult.__repr__b   s7    ~~&&'q)<)<(?tO`O`Naabc	
r   c                   V ^8  d   QhRR/# )r   r   rV   r   )r   s   "r   r   rW   h   s     # #i #r   c                    V P                   # )a  A list of _ids of the inserted documents, in the order provided.

.. note:: If ``False`` is passed for the `ordered` parameter to
  :meth:`~pymongo.collection.Collection.insert_many` the server
  may have inserted the documents in a different order than what
  is presented here.
)rY   r&   s   &r   rU   InsertManyResult.inserted_idsg   s     """r   )__inserted_ids)r%   r6   r7   r8   r9   r:   r   r'   r;   rU   r<   rP   rQ   s   @r   rS   rS   Y   s.    Q#I' '

 # #r   rS   c                     a  ] tR t^stRtRtRR V 3R llltR R lt]R R l4       t	]R R	 l4       t
]R
 R l4       t]R R l4       t]R R l4       tRtV ;t# )UpdateResultzThe return type for :meth:`~pymongo.collection.Collection.update_one`,
:meth:`~pymongo.collection.Collection.update_many`, and
:meth:`~pymongo.collection.Collection.replace_one`, and as part of
:meth:`~pymongo.mongo_client.MongoClient.bulk_write`.
c               $    V ^8  d   QhRRRRRR/# )r   
raw_resultOptional[Mapping[str, Any]]r   r   in_client_bulkr   )r   s   "r   r   UpdateResult.__annotate__   s(     ' '/' ' 	'r   c                	>   < Wn         W0n        \        SV `  V4       R # r   )_UpdateResult__raw_result_UpdateResult__in_client_bulkrD   r   )r   re   r   rg   r$   s   &&&&r   r   UpdateResult.__init__   s     ' .&r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   rh           e e# er   c                	j    V P                   P                   R V P                  : RV P                   R2# rI   )r$   r%   rj   r   r&   s   &r   r'   UpdateResult.__repr__   6    ..))*!D,=,=+@PTPaPaObbcddr   c                   V ^8  d   QhRR/# )r   r   rf   r   )r   s   "r   r   rh      s     ! !7 !r   c                    V P                   # z/The raw result document returned by the server.rj   r&   s   &r   re   UpdateResult.raw_result           r   c                   V ^8  d   QhRR/# r   r   intr   )r   s   "r   r   rh      s     - -s -r   c                    V P                  R4       V P                  f   Q hV P                  '       g   V P                  e   ^ # V P                  P	                  R^ 4      # )z0The number of documents matched for this update.matched_countn)r/   rj   rk   upserted_idgetr&   s   &r   r|   UpdateResult.matched_count   sW     	%%o6  ,,,$$$)9)9)E  $$S!,,r   c                   V ^8  d   QhRR/# ry   r   )r   s   "r   r   rh      s     = = =r   c                    V P                  R4       V P                  f   Q h\        \        V P                  P	                  R4      4      # z!The number of documents modified.modified_count	nModified)r/   rj   r   rz   r   r&   s   &r   r   UpdateResult.modified_count   sC     	%%&67  ,,,C**..{;<<r   c                   V ^8  d   QhRR/# rL   r   )r   s   "r   r   rh      s     7 7S 7r   c                   V P                  R4       V P                  f   Q hV P                  '       d<   V P                  P                  R4      '       d   V P                  R,          R,          # V P                  P                  RR4      # )zNThe _id of the inserted document if an upsert took place. Otherwise
``None``.
r~   Nupserted_id)r/   rj   rk   r   r&   s   &r   r~   UpdateResult.upserted_id   su    
 	%%m4  ,,,   T%6%6%:%::%F%F$$Z077  $$Z66r   c                   V ^8  d   QhRR/# r2   r   )r   s   "r   r   rh      s     / /D /r   c                @    V P                   f   Q hRV P                   9   # )z5Whether an upsert took place.

.. versionadded:: 4.9
r   ru   r&   s   &r   
did_upsertUpdateResult.did_upsert   s'       ,,,T....r   )__in_client_bulk__raw_result)r   r   )F)r%   r6   r7   r8   r9   r:   r   r'   r;   re   r|   r   r~   r   r<   rP   rQ   s   @r   rc   rc   s   s    I
' 'e ! ! - - = = 7 7 / /r   rc   c                  n   a  ] tR t^tRtR
tR V 3R lltR R lt]R R l4       t	]R R	 l4       t
R
tV ;t# )DeleteResultzThe return type for :meth:`~pymongo.collection.Collection.delete_one`
and :meth:`~pymongo.collection.Collection.delete_many`
and as part of :meth:`~pymongo.mongo_client.MongoClient.bulk_write`.
c               $    V ^8  d   QhRRRRRR/# )r   re   Mapping[str, Any]r   r   r   r   r   )r   s   "r   r   DeleteResult.__annotate__   s"     ' '#4 'D 'T 'r   c                	2   < Wn         \        SV `	  V4       R # r   )_DeleteResult__raw_resultrD   r   )r   re   r   r$   s   &&&r   r   DeleteResult.__init__   s    &&r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r      rn   r   c                	j    V P                   P                   R V P                  : RV P                   R2# rI   )r$   r%   r   r   r&   s   &r   r'   DeleteResult.__repr__   rq   r   c                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   r      s     ! !- !r   c                    V P                   # rt   )r   r&   s   &r   re   DeleteResult.raw_result   rw   r   c                   V ^8  d   QhRR/# ry   r   )r   s   "r   r   r      s     - -s -r   c                \    V P                  R4       V P                  P                  R^ 4      # ) The number of documents deleted.deleted_countr}   )r/   r   r   r&   s   &r   r   DeleteResult.deleted_count   s+     	%%o6  $$S!,,r   )r   )r%   r6   r7   r8   r9   r:   r   r'   r;   re   r   r<   rP   rQ   s   @r   r   r      sG    
 "I' 'e ! ! - -r   r   c                     a  ] tR t^tRtRtR V 3R lltR R lt]R R l4       t	]R R	 l4       t
]R
 R l4       t]R R l4       t]R R l4       t]R R l4       tRtV ;t# )_BulkWriteResultBasez.Private base class for bulk write API results.c               $    V ^8  d   QhRRRRRR/# r   bulk_api_resultdict[str, Any]r   r   r   r   r   )r   s   "r   r   !_BulkWriteResultBase.__annotate__   s!     ' ' 'd 't 'r   c                	2   < Wn         \        SV `	  V4       R # r   )%_BulkWriteResultBase__bulk_api_resultrD   r   r   r   r   r$   s   &&&r   r   _BulkWriteResultBase.__init__   s    !0&r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r      s     j j# jr   c                	j    V P                   P                   R V P                  : RV P                   R2# rI   )r$   r%   r   r   r&   s   &r   r'   _BulkWriteResultBase.__repr__   s6    ..))*!D,B,B+E_UYUfUfTgghiir   c                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   r      s     & & &r   c                    V P                   # )zThe raw bulk write API result.)r   r&   s   &r   r   $_BulkWriteResultBase.bulk_api_result   s     %%%r   c                   V ^8  d   QhRR/# ry   r   )r   s   "r   r   r           B B Br   c                v    V P                  R4       \        \        V P                  P	                  R4      4      # )z!The number of documents inserted.inserted_count	nInsertedr/   r   rz   r   r   r&   s   &r   r   #_BulkWriteResultBase.inserted_count   1     	%%&67C//33K@AAr   c                   V ^8  d   QhRR/# ry   r   )r   s   "r   r   r      s     A As Ar   c                v    V P                  R4       \        \        V P                  P	                  R4      4      # )z.The number of documents matched for an update.r|   nMatchedr   r&   s   &r   r|   "_BulkWriteResultBase.matched_count   s0     	%%o6C//33J?@@r   c                   V ^8  d   QhRR/# ry   r   )r   s   "r   r   r      r   r   c                v    V P                  R4       \        \        V P                  P	                  R4      4      # r   r   r&   s   &r   r   #_BulkWriteResultBase.modified_count   r   r   c                   V ^8  d   QhRR/# ry   r   )r   s   "r   r   r      s     E Es Er   c                    V P                  R4       RV P                  9   d*   \        \        V P                  P	                  R4      4      # \        \        V P                  P	                  R4      4      # )r   r   nRemovednDeleted)r/   r   r   rz   r   r&   s   &r   r   "_BulkWriteResultBase.deleted_count   s\     	%%o6///T3377
CDDT3377
CDDr   c                   V ^8  d   QhRR/# ry   r   )r   s   "r   r   r      r   r   c                v    V P                  R4       \        \        V P                  P	                  R4      4      # )z!The number of documents upserted.upserted_count	nUpsertedr   r&   s   &r   r   #_BulkWriteResultBase.upserted_count   r   r   )__bulk_api_result)r%   r6   r7   r8   r9   r:   r   r'   r;   r   r   r|   r   r   r   r<   rP   rQ   s   @r   r   r      s    8&I' 'j & & B B
 A A
 B B
 E E B Br   r   c                  X   a  ] tR tRtRtR	tR V 3R lltR R lt]R R l4       t	R	t
V ;t# )
BulkWriteResulti  z>An object wrapper for collection-level bulk write API results.c               $    V ^8  d   QhRRRRRR/# r   r   )r   s   "r   r   BulkWriteResult.__annotate__	  s!     8 8 8d 8t 8r   c                &   < \         SV `  W4       R# )a  Create a BulkWriteResult instance.

:param bulk_api_result: A result dict from the collection-level bulk write API
:param acknowledged: Was this write result acknowledged? If ``False``
    then all properties of this object will raise
    :exc:`~pymongo.errors.InvalidOperation`.
N)rD   r   r   s   &&&r   r   BulkWriteResult.__init__	  s     	7r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r     rG   r   c                	j    V P                   P                   R V P                  : RV P                   R2# rI   )r$   r%   r   r   r&   s   &r   r'   BulkWriteResult.__repr__  s8    ~~&&'q)=)=(@PTPaPaObbcd	
r   c                   V ^8  d   QhRR/# )r   r   zOptional[dict[int, Any]]r   )r   s   "r   r   r     s      6 r   c                    V P                  R4       V P                  '       d2   V P                  R,           Uu/ uF  qR,          VR,          bK  	  up# R# u upi )z=A map of operation index to the _id of the upserted document.upserted_idsr   indexr   N)r/   r   )r   upserts   & r   r   BulkWriteResult.upserted_ids  sU     	%%n5AEAUAUV`AabAav7OVE]2Aabb cs   Ar   )r%   r6   r7   r8   r9   r:   r   r'   r;   r   r<   rP   rQ   s   @r   r   r     s.    HI8 8

  r   r   c                     a  ] tR tRtRtRtR V 3R lltR R ltR R lt]	R	 R
 l4       t
]	R R l4       t]	R R l4       t]	R R l4       tRtV ;t# )ClientBulkWriteResulti!  z:An object wrapper for client-level bulk write API results.c               (    V ^8  d   QhRRRRRRRR/# )r   r   zMutableMapping[str, Any]r   r   has_verbose_resultsr   r   r   )r   s   "r   r   "ClientBulkWriteResult.__annotate__&  s2     
 
1
 
 "	

 

r   c                4   < W0n         \        SV `	  VV4       R# )a  Create a ClientBulkWriteResult instance.

:param bulk_api_result: A result dict from the client-level bulk write API
:param acknowledged: Was this write result acknowledged? If ``False``
    then all properties of this object will raise
    :exc:`~pymongo.errors.InvalidOperation`.
:param has_verbose_results: Should the returned result be verbose?
    If ``False``, then the ``insert_results``, ``update_results``, and
    ``delete_results`` properties of this object will raise
    :exc:`~pymongo.errors.InvalidOperation`.
N)+_ClientBulkWriteResult__has_verbose_resultsrD   r   )r   r   r   r   r$   s   &&&&r   r   ClientBulkWriteResult.__init__&  s    " &9"	
r   c                   V ^8  d   QhRR/# r   r   )r   s   "r   r   r   =  s     
 
# 
r   c                	    R P                  V P                  P                  V P                  V P                  V P
                  4      # )z%{}({!r}, acknowledged={}, verbose={}))r   r$   r%   r   r   r   r&   s   &r   r'   ClientBulkWriteResult.__repr__=  s=    6==NN##  $$	
 	
r   c                    V ^8  d   QhRRRR/# r*   r   )r   s   "r   r   r   E  s      3 4 r   c                H    V P                   '       g   \        RV R24      hR# )zARaise an exception on property access if verbose results are off.r-   zv is not available when the results are not set to be verbose. Check the verbose_results attribute to avoid this error.N)r   r   r.   s   &&r   _raise_if_not_verbose+ClientBulkWriteResult._raise_if_not_verboseE  s3    )))"}o .A A  *r   c                   V ^8  d   QhRR/# r2   r   )r   s   "r   r   r   O  s     * *T *r   c                    V P                   # )z/Whether the returned results should be verbose.)r   r&   s   &r   r   )ClientBulkWriteResult.has_verbose_resultsN  s     )))r   c                   V ^8  d   QhRR/# )r   r   zMapping[int, InsertOneResult]r   )r   s   "r   r   r   T  s     
 
 = 
r   c                    V P                  R4       V P                  R4       \        \        \        \
        3,          V P                  P                  R4      4      # )z:A map of successful insertion operations to their results.insert_resultsinsertResults)r/   r   r   r   rz   r>   r   r   r&   s   &r   r   $ClientBulkWriteResult.insert_resultsS  sP     	%%&67""#34C()  $$_5
 	
r   c                   V ^8  d   QhRR/# )r   r   zMapping[int, UpdateResult]r   )r   s   "r   r   r   ^       
 
 : 
r   c                    V P                  R4       V P                  R4       \        \        \        \
        3,          V P                  P                  R4      4      # )z7A map of successful update operations to their results.update_resultsupdateResults)r/   r   r   r   rz   rc   r   r   r&   s   &r   r   $ClientBulkWriteResult.update_results]  P     	%%&67""#34C%&  $$_5
 	
r   c                   V ^8  d   QhRR/# )r   r   zMapping[int, DeleteResult]r   )r   s   "r   r   r   h  r   r   c                    V P                  R4       V P                  R4       \        \        \        \
        3,          V P                  P                  R4      4      # )z7A map of successful delete operations to their results.delete_resultsdeleteResults)r/   r   r   r   rz   r   r   r   r&   s   &r   r   $ClientBulkWriteResult.delete_resultsg  r   r   )__has_verbose_results)r%   r6   r7   r8   r9   r:   r   r'   r   r;   r   r   r   r   r<   rP   rQ   s   @r   r   r   !  so    D*I
 
.
 * * 
 
 
 
 
 
r   r   N)r9   
__future__r   typingr   r   r   r   r   pymongo.errorsr   r
   r>   rS   rc   r   r   r   r   r   r   r   <module>r     s    # ? ? +&# &#R"l ",#| #4@/< @/F-< -60B< 0Bf* :N
0 N
r   