HEX
Server: nginx/1.24.0
System: Linux webserver 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: wpuser (1002)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/botocore/docs/__pycache__/docstring.cpython-312.pyc
�

P��e@���ddlmZddlmZddlmZddlmZGd�de�Z	Gd�de	�Z
Gd	�d
e	�ZGd�de	�Zy
)�)�DocumentStructure��document_model_driven_method��document_paginate_method��document_wait_methodc�P��eZdZdZ�fd�Z�fd�Zd�Zd	d�Zd�ZeZ	d�Z
d�Z�xZ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.
    c�L��t�|��||_||_d|_y)z�
        The args and kwargs are the same as the underlying document
        generation function. These just get proxied to the underlying
        function.
        N)�super�__init__�	_gen_args�_gen_kwargs�
_docstring)�self�args�kwargs�	__class__s   ��9/usr/lib/python3/dist-packages/botocore/docs/docstring.pyrzLazyLoadedDocstring.__init__s&���	�������!������c�"��t�|�|�S�N)r
�__new__)�clsrrrs   �rrzLazyLoadedDocstring.__new__'s����w��s�#�#rc��td��)Nzq_write_docstring is not implemented. Please subclass from this class and provide your own _write_docstring method)�NotImplementedError�rrrs   r�_write_docstringz$LazyLoadedDocstring._write_docstring+s��!�
F�
�	
rc�p�|j�|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.
        )r�	_generate�
expandtabs)r�tabsizes  rr"zLazyLoadedDocstring.expandtabs1s-���?�?�"��N�N�����)�)�'�2�2rc�"�|j�Sr)r!�rs r�__str__zLazyLoadedDocstring.__str__?s���~�~��rc�\�|j�|j�|_|jSr)r�_create_docstringr%s rr!zLazyLoadedDocstring._generateEs&���?�?�"�"�4�4�6�D�O����rc��tdd��}|j|g|j��i|j��|j	�jd�S)N�	docstring�html)�targetzutf-8)rrrr�flush_structure�decode)r�docstring_structures  rr(z%LazyLoadedDocstring._create_docstringKsZ��/��F�K��	�����	
�"&�.�.�	
�48�4D�4D�	
�#�2�2�4�;�;�G�D�Dr)�)
�__name__�
__module__�__qualname__�__doc__rrrr"r&�__repr__r!r(�
__classcell__)rs@rrrs3����	�$�
�3� ��H��Errc��eZdZd�Zy)�ClientMethodDocstringc��t|i|��yrrrs   rrz&ClientMethodDocstring._write_docstringVs��$�d�5�f�5rN�r1r2r3r�rrr8r8Us��6rr8c��eZdZd�Zy)�WaiterDocstringc��t|i|��yrrrs   rrz WaiterDocstring._write_docstring[s���d�-�f�-rNr:r;rrr=r=Zs��.rr=c��eZdZd�Zy)�PaginatorDocstringc��t|i|��yrrrs   rrz#PaginatorDocstring._write_docstring`s�� �$�1�&�1rNr:r;rrr@r@_s��2rr@N)
�botocore.docs.bcdoc.restdocr�botocore.docs.methodr�botocore.docs.paginatorr�botocore.docs.waiterr	�strrr8r=r@r;rr�<module>rGsI��:�=�<�5�?E�#�?E�D6�/�6�
.�)�.�
2�,�2r