HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/annotated_doc/__pycache__/main.cpython-310.pyc
o

;j3�@sGdd�d�ZdS)c@sPeZdZdZdeddfdd�Zdefdd�Zdefd	d
�Zde	de
fdd
�ZdS)�DocatDefine the documentation of a type annotation using `Annotated`, to be
        used in class attributes, function and method parameters, return values,
        and variables.

    The value should be a positional-only string literal to allow static tools
    like editors and documentation generators to use it.

    This complements docstrings.

    The string value passed is available in the attribute `documentation`.

    Example:

    ```Python
    from typing import Annotated
    from annotated_doc import Doc

    def hi(name: Annotated[str, Doc("Who to say hi to")]) -> None:
        print(f"Hi, {name}!")
    ```
    �
documentation�returnNcCs
||_dS�N�r)�selfr�r�F/opt/saltstack/salt/lib/python3.10/site-packages/annotated_doc/main.py�__init__�
zDoc.__init__cCsd|j�d�S)NzDoc(�)r�rrrr�__repr__szDoc.__repr__cCs
t|j�Sr)�hashrrrrr�__hash__r
zDoc.__hash__�othercCst|t�stS|j|jkSr)�
isinstancer�NotImplementedr)rrrrr�__eq__!s
z
Doc.__eq__)�__name__�
__module__�__qualname__�__doc__�strr	r
�intr�object�boolrrrrrrsrN)rrrrr�<module>s