+
    8i                    T    R t ^ RIHt ^ RIHt ^ RIHtHtHtH	t	H
t
  ! R R]4      tR# )z/Tools for representing JavaScript code in BSON.)annotations)Mapping)Anyr   OptionalTypeUnionc                      ] tR t^t$ Rt^tR]R&   RR R llt]R R l4       t	R	 R
 lt
R R ltRtR]R&   R R ltRtR# )Codea  BSON's JavaScript code type.

Raises :class:`TypeError` if `code` is not an instance of
:class:`str` or `scope` is not ``None`` or an instance
of :class:`dict`.

Scope variables can be set by passing a dictionary as the `scope`
argument or by using keyword arguments. If a variable is set as a
keyword argument it will override any setting for that variable in
the `scope` dictionary.

:param code: A string containing JavaScript code to be evaluated or another
    instance of Code. In the latter case, the scope of `code` becomes this
    Code's :attr:`scope`.
:param scope: dictionary representing the scope in which
    `code` should be evaluated - a mapping from identifiers (as
    strings) to values. Defaults to ``None``. This is applied after any
    scope associated with a given `code` above.
:param kwargs: scope variables can also be passed as
    keyword arguments. These are applied after `scope` and `code`.

.. versionchanged:: 3.4
  The default value for :attr:`scope` is ``None`` instead of ``{}``.

zUnion[Mapping[str, Any], None]_Code__scopeNc          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )   clsz
Type[Code]codezUnion[str, Code]scopeOptional[Mapping[str, Any]]kwargsr   returnr	    )formats   "G/var/www/html/photoedit/myenv/lib/python3.14/site-packages/bson/code.py__annotate__Code.__annotate__4   s:       + 	
 
    c                	   \        V\        4      '       g   \        R \        V4       24      h\        P	                  W4      p VP
                  Vn        Ve^   \        V\        4      '       g   \        R\        V4       24      hVP                  e   VP                  P                  V4       MW$n        V'       d2   VP                  e   VP                  P                  V4       V# W4n        V#   \         d    RTn         Li ; i)z%code must be an instance of str, not Nz'scope must be an instance of dict, not )

isinstancestr	TypeErrortype__new__r   r
   AttributeError_Mappingupdate)r   r   r   r   selfs   &&&, r   r   Code.__new__4   s     $$$CDJ<PQQ{{3%	 ::DL eX.."I$u+ WXX||'##E*$||'##F+   &#  	 DL	 s   C1 1DDc                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   r   U   s      2 r   c                    V P                   # )z/Scope dictionary for this instance or ``None``.)r
   r"   s   &r   r   
Code.scopeT   s     ||r   c                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   r   Y   s     ? ?# ?r   c                	P    R \         P                  V 4       RV P                  : R2# )zCode(z, ))r   __repr__r
   r&   s   &r   r+   Code.__repr__Y   s&    s||D)*"T\\,<A>>r   c                    V ^8  d   QhRRRR/# r   otherr   r   boolr   )r   s   "r   r   r   \   s      C D r   c                	    \        V\        4      '       d0   V P                  \        V 4      3VP                  \        V4      38H  # R # )F)r   r	   r
   r   r"   r/   s   &&r   __eq__Code.__eq__\   s7    eT""LL#d),E
0KKKr   r   __hash__c                    V ^8  d   QhRRRR/# r.   r   )r   s   "r   r   r   c   s     ! !C !D !r   c                	    W8X  * # Nr   r2   s   &&r   __ne__Code.__ne__c   s      r   )__scoper8   )__name__
__module____qualname____firstlineno____doc___type_marker__annotations__r   propertyr   r+   r3   r5   r9   __static_attributes__r   r   r   r	   r	      sN    4 L++@  ?
 Hc! !r   r	   N)r@   
__future__r   collections.abcr   r    typingr   r   r   r   r   r	   r   r   r   <module>rH      s$    6 " / 6 6N!3 N!r   