HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //proc/722141/root/lib/python3.6/site-packages/botocore/docs/__pycache__/docstring.cpython-36.pyc
3

�T_s�@stddlmZddlmZddlmZddlmZGdd�de�Z	Gdd�de	�Z
Gd	d
�d
e	�ZGdd�de	�Zd
S)�)�document_model_driven_method)�document_wait_method)�document_paginate_method)�DocumentStructurecsZeZdZdZ�fdd�Z�fdd�Zdd�Zdd	d
�Zdd�ZeZ	d
d�Z
dd�Z�ZS)�LazyLoadedDocstringa0Used for lazily loading docstrings

    You can instantiate this class and assign it to a __doc__ value.
    The docstring will not be generated till accessed via __doc__ or
    help(). Note that all docstring classes **must** subclass from
    this class. It cannot be used directly as a docstring.
    cs$tt|�j�||_||_d|_dS)z�
        The args and kwargs are the same as the underlying document
        generation function. These just get proxied to the underlying
        function.
        N)�superr�__init__�	_gen_args�_gen_kwargs�
_docstring)�self�args�kwargs)�	__class__��/usr/lib/python3.6/docstring.pyrszLazyLoadedDocstring.__init__cstt|�j|�S)N)rr�__new__)�clsr
r)rrrr&szLazyLoadedDocstring.__new__cOstd��dS)Nzq_write_docstring is not implemented. Please subclass from this class and provide your own _write_docstring method)�NotImplementedError)rr
rrrr�_write_docstring*sz$LazyLoadedDocstring._write_docstring�cCs|jdkr|j�|jj|�S)a�Expands tabs to spaces

        So this is a big hack in order to get lazy loaded docstring work
        for the ``help()``. In the ``help()`` function, ``pydoc`` and
        ``inspect`` are used. At some point the ``inspect.cleandoc``
        method is called. To clean the docs ``expandtabs`` is called
        and that is where we override the method to generate and return the
        docstrings.
        N)r�	_generate�
expandtabs)r�tabsizerrrr0s

zLazyLoadedDocstring.expandtabscCs|j�S)N)r)rrrr�__str__>szLazyLoadedDocstring.__str__cCs|jdkr|j�|_|jS)N)r�_create_docstring)rrrrrDs

zLazyLoadedDocstring._generatecCs0tddd�}|j|f|j�|j�|j�jd�S)NZ	docstringZhtml)�targetzutf-8)rrr	r
Zflush_structure�decode)rZdocstring_structurerrrrJs

z%LazyLoadedDocstring._create_docstring)r)
�__name__�
__module__�__qualname__�__doc__rrrrr�__repr__rr�
__classcell__rr)rrrs
rc@seZdZdd�ZdS)�ClientMethodDocstringcOst||�dS)N)r)rr
rrrrrUsz&ClientMethodDocstring._write_docstringN)rrr rrrrrr$Tsr$c@seZdZdd�ZdS)�WaiterDocstringcOst||�dS)N)r)rr
rrrrrZsz WaiterDocstring._write_docstringN)rrr rrrrrr%Ysr%c@seZdZdd�ZdS)�PaginatorDocstringcOst||�dS)N)r)rr
rrrrr_sz#PaginatorDocstring._write_docstringN)rrr rrrrrr&^sr&N)
Zbotocore.docs.methodrZbotocore.docs.waiterrZbotocore.docs.paginatorrZbotocore.docs.bcdoc.restdocr�strrr$r%r&rrrr�<module>
sA