oinspect.pyc
1 o 2 .��ck� � @ sB d Z ddgZddlZddlZddlmZ ddlZddlZddlZddlm Z ddl 3 Z 4 ddlZddl mZ ddlmZ dd lmZ dd 5 lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl!m"Z"m#Z#m$Z$ ddl%m&Z& ddl'm(Z( ddl)m*Z* ddl+m,Z, ddl-m.Z. ddl/m0Z0 dd� Z1e 6 j2j3j Z4e5j6j Z7dd� e 7 j8e 8 j9e 9 j2e:fD �Z;e<e=�Z>e<e?j@�ZAe"ZBejCZDg d�ZEdd� ZFd d!� ZGd"ee?df fd#d$�ZHd:d"ee?df fd&d'�ZId(d)� ZJe*d*d+� �ZKe*d,d-� �ZLe*d;d/d0��ZMd1d2� ZNd"e?fd3d4�ZOd5d6� ZPG d7d� de(�ZQd"e?fd8d9�ZRdS )<z�Tools for inspecting Python objects. 10 11 Uses syntax highlighting for presenting the various information elements. 12 13 Similar in spirit to the inspect module, but all calls take a name argument to 14 reference the name under which an object is being read. 15 � Inspector� InspectColors� N)� signature)�dedent)�Union)�page)�pretty)�skip_doctest)� 16 PyColorize)�openpy)�safe_hasattr)� compress_user)�indent)�list_namespace)�typestr2type)� 17 TermColors�ColorScheme�ColorSchemeTable)�cast_unicode)� Colorable)�undoc)� highlight)�PythonLexer)� HtmlFormatterc C s t | t� tdd��S )NT)� noclasses)r r r )�code� r ��C:\Users\Jacks.GUTTSPC\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\IPython\core\oinspect.py�pylight0 s r c C s h | ]}t �|��qS r )�inspect�getdoc)�.0�tr r r � <setcomp>6 s 18 �r# )� type_name� 19 base_class�string_form� namespace�length�file� 20 definition� docstring�source�init_definition�class_docstring�init_docstring�call_def�call_docstring�ismagic�isalias�isclass�found�namec K s dd� t D �}|�| � |S )z1Make an object info dict with all fields present.c S s i | ]}|d �qS �Nr )r! �kr r r � 21 <dictcomp>U � zobject_info.<locals>.<dictcomp>)�info_fields�update)�kwZinfodictr r r �object_infoS s 22 r>