+
    ÁFñjÅ  ã                   ó  a € R t0 t R t^ RIHtHtHt ]! R]R7      t]! R]R7      t ! R R]],          4      t	]	! R4      t
] ^ k  ]	! R4      t] ^k  ]	! R	4      t] ^k  ]	! ^4      t] ^k  ]	! R
4      t] ^k  ]	! ^P4      t] ^k R# )a§  This module contains the DefaultValue class.

.. versionchanged:: 20.0
   Previously, the contents of this module were available through the (no longer existing)
   module ``telegram._utils.helpers``.

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.
)ÚGenericÚTypeVarÚoverloadÚDVType)ÚboundÚOTc                   óØ   a € ] tR t^%t o RtRtV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR	 lt	]
]V 3R
 lR l4       4       t]
]V 3R lR l4       4       t]V 3R lR l4       tRtV tR# )ÚDefaultValueaí  Wrapper for immutable default arguments that allows to check, if the default value was set
explicitly. Usage::

    default_one = DefaultValue(1)
    def f(arg=default_one):
        if arg is default_one:
            print('`arg` is the default')
            arg = arg.value
        else:
            print('`arg` was set explicitly')
        print(f'`arg` = {str(arg)}')

This yields::

    >>> f()
    `arg` is the default
    `arg` = 1
    >>> f(1)
    `arg` was set explicitly
    `arg` = 1
    >>> f(2)
    `arg` was set explicitly
    `arg` = 2

Also allows to evaluate truthiness::

    default = DefaultValue(value)
    if default:
        ...

is equivalent to::

    default = DefaultValue(value)
    if value:
        ...

``repr(DefaultValue(value))`` returns ``repr(value)`` and ``str(DefaultValue(value))`` returns
``f'DefaultValue({value})'``.

Args:
    value (:class:`object`): The value of the default argument
Attributes:
    value (:class:`object`): The value of the default argument

c                ó    <€ V ^8„  d   QhRS[ /# )é   Úvalue)r   )ÚformatÚ__classdict__s   "€ÚR/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/_utils/defaultvalue.pyÚ__annotate__ÚDefaultValue.__annotate__V   s   ø€ ÷ #ñ #™fñ #ó    c                ó   € Wn         R # ©N©r   )Úselfr   s   &&r   Ú__init__ÚDefaultValue.__init__V   s   € Ø"Ž
r   c                ó    <€ V ^8„  d   QhRS[ /# ©r   Úreturn)Úbool)r   r   s   "€r   r   r   Y   s   ø€ ÷  ñ  ™$ñ  r   c                ó,   € \        V P                  4      # r   )r   r   ©r   s   &r   Ú__bool__ÚDefaultValue.__bool__Y   ó   € Ü�D—J‘JÓÐr   c                ó    <€ V ^8„  d   QhRS[ /# r   ©Ústr)r   r   s   "€r   r   r   ]   s   ø€ ÷ -ñ -™ñ -r   c                ó"   € R V P                    R2# )zDefaultValue(Ú)r   r   s   &r   Ú__str__ÚDefaultValue.__str__]   s   € Ø˜tŸz™z˜l¨!Ð,Ð,r   c                ó    <€ V ^8„  d   QhRS[ /# r   r#   )r   r   s   "€r   r   r   a   s   ø€ ÷  ñ  ™#ñ  r   c                ó,   € \        V P                  4      # r   )Úreprr   r   s   &r   Ú__repr__ÚDefaultValue.__repr__a   r!   r   c                ó$   <€ V ^8„  d   QhRRRS[ /# )r   ÚobjzDefaultValue[OT]r   ©r   )r   r   s   "€r   r   r   f   s   ø€ ×5Ñ5Ð)Ð5©bÑ5r   c                ó   € R # r   © ©r/   s   &r   Ú	get_valueÚDefaultValue.get_valued   s   € á25r   c                ó&   <€ V ^8„  d   QhRS[ RS[ /# )r   r/   r   r0   )r   r   s   "€r   r   r   j   s   ø€ ×%Ñ%‘rÐ%™bÑ%r   c                ó   € R # r   r2   r3   s   &r   r4   r5   h   s   € á"%r   c                ó$   <€ V ^8„  d   QhRRRS[ /# )r   r/   zOT | DefaultValue[OT]r   r0   )r   r   s   "€r   r   r   m   s    ø€ ÷ Cñ CÐ.ð C±2ñ Cr   c                óJ   € \        V \        4      '       d   V P                  # T # )zÌShortcut for::

    return obj.value if isinstance(obj, DefaultValue) else obj

Args:
    obj (:obj:`object`): The object to process

Returns:
    Same type as input, or the value of the input: The value
)Ú
isinstancer	   r   r3   s   &r   r4   r5   l   s   € ô ' s¬L×9Ò9ˆs�y‰yÐB¸sÐBr   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r   r   r'   r,   r   Ústaticmethodr4   Ú__static_attributes__Ú__classdictcell__)r   s   @r   r	   r	   %   s|   ø‡ € ñ,ð\ €I÷#ð #÷ ð  ÷-ð -÷ ð  ð Øß5ó ó à5àØß%ó ó à%à÷Có öCr   r	   NFTz	127.0.0.1c                ó„  € V ^8„  d   Qh/ ^ \         9   d   \        R,          ;R&   ^\         9   d   \        \        ,          ;R&   ^\         9   d   \        \        ,          ;R&   ^\         9   d   \        \        ,          ;R&   ^\         9   d   \        \        ,          ;R&   ^\         9   d   \        \        ,          ;R&   # )r   NÚDEFAULT_NONEÚDEFAULT_FALSEÚDEFAULT_TRUEÚ
DEFAULT_20Ú
DEFAULT_IPÚ
DEFAULT_80)Ú__conditional_annotations__r	   r   Úintr$   )r   s   "r   r   r      s¢   € ÷ 
ñ 
÷P 6Ò 5Œl˜4Õ Ñ 5ñQ
÷V 8Ò 7Œ|œDÕ!Ñ 7ñW
÷\ 6Ò 5Œlœ4Õ Ñ 5ñ]
÷j 1Ò 0ŒLœÕÑ 0ñk
÷p :Ò 9ŒLœÕÑ 9ñq
÷| 1Ò 0ŒLœÕÑ 0ò}
r   )rK   r?   Útypingr   r   r   Úobjectr   r   r	   rE   rF   rG   rH   rI   rJ   r   )rK   s   @r   Ú<module>rO      s¬   øðö&
÷ .Ñ -á	� Ô	(€ÙˆT˜Ô €ôSC�7˜6•?ô SCñl $0°Ó#5€Ó 5Ø 0á$0°Ó$7€Ó 7Ø 1á#/°Ó#5€Ó 5ðñ !-¨RÓ 0€
Ó 0Ø .á ,¨[Ó 9€
Ó 9ðñ
 !-¨RÓ 0€
Ó 0ñr   