
    {i                    Z    S r SSKJr  SSKJr  SSKJrJr  \(       a  SSKr " S S5      r	g)z Provide the PRAWBase superclass.    )annotations)deepcopy)TYPE_CHECKINGAnyNc                  V    \ rS rSrSr\      SS j5       r\S	S j5       rS
S jr	Sr
g)PRAWBase   z"Superclass for all models in PRAW.c                V    X;   a  [        X   5      O0 nUR                  U5        X0U'   g)a
  Replace arguments[key] with a deepcopy and update.

This method is often called when new parameters need to be added to a request.
By calling this method and adding the new or updated parameters we can insure we
don't modify the dictionary passed in by the caller.

N)r   update)	argumentskeynew_argumentsvalues       J/home/james-whalen/.local/lib/python3.13/site-packages/praw/models/base.py_safely_add_argumentsPRAWBase._safely_add_arguments   s*     -0,<("]##    c                    U " X!S9$ )zReturn an instance of ``cls`` from ``data``.

:param data: The structured data.
:param reddit: An instance of :class:`.Reddit`.

)_data )clsdatareddits      r   parsePRAWBase.parse   s     6&&r   c                j    Xl         U(       a&  UR                  5        H  u  p4[        XU5        M     gg)z\Initialize a :class:`.PRAWBase` instance.

:param reddit: An instance of :class:`.Reddit`.

N)_reddititemssetattr)selfr   r   	attributer   s        r   __init__PRAWBase.__init__(   s.     $)KKM 	/ %2 r   )r   N)r   dict[str, Any]r   strr   r   )r   r$   r   praw.Redditreturnr   )r   r&   r   zdict[str, Any] | None)__name__
__module____qualname____firstlineno____doc__staticmethodr   classmethodr   r"   __static_attributes__r   r   r   r   r      sH    ,$+.AD  ' '	0r   r   )
r,   
__future__r   copyr   typingr   r   prawr   r   r   r   <module>r4      s!    & "  %%0 %0r   