Файловый менеджер - Редактировать - /usr/lib/python3/dist-packages/pip/_vendor/rich/__pycache__/_inspect.cpython-310.pyc
Ðазад
o !��h � @ s� d dl mZ d dlmZmZmZmZmZmZ d dl m Z mZmZm Z ddlmZmZ ddlmZ ddlmZ ddlmZ dd lmZ dd lmZ ddlmZmZ ded efdd�Zded efdd�Z G dd� de�Z!dS )� )�absolute_import)�cleandoc�getdoc�getfile�isclass�ismodule� signature)�Any�Iterable�Optional�Tuple� )�RenderableType�Group)�ReprHighlighter)�JupyterMixin)�Panel)�Pretty)�Table)�Text�TextType�doc�returnc C s | � d�\}}}|S )z)Get the first paragraph from a docstring.z )� partition)r � paragraph�_� r �;/usr/lib/python3/dist-packages/pip/_vendor/rich/_inspect.py�_first_paragraph s r c C s t | ��� } | S )zReformat docstring.)r �strip)r r r r � _reformat_doc s r c @ s� e Zd ZdZdddddddddd� dedee ded ed ededed edededdfdd�Zdede fdd�Z defdd�Zde dedee fdd�Zdee fdd�ZdS )�Inspecta� A renderable to inspect any Python Object. Args: obj (Any): An object to inspect. title (str, optional): Title to display over inspect result, or None use type. Defaults to None. help (bool, optional): Show full help text rather than just first paragraph. Defaults to False. methods (bool, optional): Enable inspection of callables. Defaults to False. docs (bool, optional): Also render doc strings. Defaults to True. private (bool, optional): Show private attributes (beginning with underscore). Defaults to False. dunder (bool, optional): Show attributes starting with double underscore. Defaults to False. sort (bool, optional): Sort attributes alphabetically. Defaults to True. all (bool, optional): Show all attributes. Defaults to False. value (bool, optional): Pretty print value of object. Defaults to True. NFT) �title�help�methods�docs�private�dunder�sort�all�value�objr"