
    Yi	                         S r SSKJr  SSKJrJr  SSKJr  SSKJ	r	  \" S5      r
S\\\
      S\\
S	4   4S
 jrS\\   S\	\   S\	\   4S jrg)a:  This module contains helper functions related to parsing arguments for classes and methods.

Warning:
    Contents of this module are intended to be used internally by the library and *not* by the
    user. Changes to this module are not considered breaking changes and may not be documented in
    the changelog.
    )Sequence)OptionalTypeVar)LinkPreviewOptions)ODVInputTargreturn.c                 *    U (       a  [        U 5      $ S$ )zParses an optional sequence into a tuple

Args:
    arg (:obj:`Sequence`): The sequence to parse.

Returns:
    :obj:`Tuple`: The sequence converted to a tuple or an empty tuple.
 )tuple)r	   s    J/app/.venv/lib/python3.13/site-packages/telegram/_utils/argumentparsing.pyparse_sequence_argr   #   s     5:$"$    disable_web_page_previewlink_preview_optionsc                 P    U (       a  U(       a  [        S5      eU b	  [        U S9nU$ )zWrapper around warn_about_deprecated_arg_return_new_arg. Takes care of converting
disable_web_page_preview to LinkPreviewOptions.
zXParameters `disable_web_page_preview` and `link_preview_options` are mutually exclusive.)is_disabled)
ValueErrorr   )r   r   s     r   parse_lpo_and_dwppr   /   s6      $8
 	

  +1>VWr   N)__doc__collections.abcr   typingr   r   telegram._linkpreviewoptionsr   telegram._utils.typesr   r   r   r   boolr   r   r   r   <module>r      sr   & % $ ; *CL	%HXa[1 	%eAsFm 	% &tn DLM_D`  ! r   