HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/botocore/docs/__pycache__/docstring.cpython-310.pyc
o

.&�as�@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|���||_||_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__��9/usr/lib/python3/dist-packages/botocore/docs/docstring.pyrs
zLazyLoadedDocstring.__init__cstt|��|�S�N)r
r	�__new__)�clsrrrrrr&szLazyLoadedDocstring.__new__cOstd��)Nzq_write_docstring is not implemented. Please subclass from this class and provide your own _write_docstring method)�NotImplementedErrorrrrr�_write_docstring*s�z$LazyLoadedDocstring._write_docstring�cCs|jdur	|��|j�|�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|��Sr)r�rrrr�__str__>szLazyLoadedDocstring.__str__cCs|jdur
|��|_|jSr)r�_create_docstringr rrrrDs

zLazyLoadedDocstring._generatecCs6tddd�}|j|g|j�Ri|j��|���d�S)N�	docstring�html)�targetzutf-8)rrrr
�flush_structure�decode)r�docstring_structurerrrr"Js���z%LazyLoadedDocstring._create_docstring)r)
�__name__�
__module__�__qualname__�__doc__rrrrr!�__repr__rr"�
__classcell__rrrrr	s
r	c@�eZdZdd�ZdS)�ClientMethodDocstringcO�t|i|��dSrrrrrrrU�z&ClientMethodDocstring._write_docstringN�r)r*r+rrrrrr0T�r0c@r/)�WaiterDocstringcOr1rrrrrrrZr2z WaiterDocstring._write_docstringNr3rrrrr5Yr4r5c@r/)�PaginatorDocstringcOr1rrrrrrr_r2z#PaginatorDocstring._write_docstringNr3rrrrr6^r4r6N)
�botocore.docs.methodr�botocore.docs.waiterr�botocore.docs.paginatorr�botocore.docs.bcdoc.restdocr�strr	r0r5r6rrrr�<module>sA