← Back
Editing: core.cpython-311.pyc
� ���cK� � �" � d dl Z d dlZd dlZd dlZd dlmZmZ d dlmZ d dl m Z d dlmZm Z mZ d dlmZmZmZmZmZmZmZmZmZmZ d dlmZ d dlZd dlmZ d d lmZ d d lm Z m!Z! d dl"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z- edd e.fde.fdefg� � Z/de/_0 edde.fde1fde2fg� � Z3de3_0 G d� de� � Z4 G d� d edde2fdee j5 fdefg� � � � Z6 G d� dej7 � � Z7 G d � d!� � Z8 G d"� d#e9� � Z: e:� � Z; G d$� d%� � Z< G d&� d'e9� � Z=d(ee/ d)ee/geee2e2f f d*ee3 fd+�Z>d,� Z? G d-� d.� � Z@ G d/� d0e9� � ZAdS )1� N)�defaultdict�Counter)�Enum)�dedent)� FrameType�CodeType� TracebackType) �Iterator�List�Tuple�Optional� NamedTuple�Any�Iterable�Callable�Union�Sequence)�Mapping)�Token)�only)� Evaluator�is_expression_interesting)�truncate�unique_in_order� line_range�frame_and_lineno� iter_stack�collapse_repeated�group_by_key_func�cached_property�is_frame�_pygmented_with_ranges�assert_�RangeInLine�start�end�dataz� Represents a range of characters within one line of source code, and some associated data. Typically this will be converted to a pair of markers by markers_from_ranges. �MarkerInLine�position�is_start�stringa� A string that is meant to be inserted at a given position in a line of source code. For example, this could be an ANSI code or the opening or closing of an HTML tag. is_start should be True if this is the first of a pair such as the opening of an HTML tag. This will help to sort and insert markers correctly. Typically this would be created from a RangeInLine by markers_from_ranges. Then use Line.render to insert the markers correctly. c � � e Zd ZdZdZdZdZdS )� BlankLinesaE The values are intended to correspond to the following behaviour: HIDDEN: blank lines are not shown in the output VISIBLE: blank lines are visible in the output SINGLE: any consecutive blank lines are shown as a single blank line in the output. This option requires the line number to be shown. For a single blank line, the corresponding line number is shown. Two or more consecutive blank lines are shown as a single blank line in the output with a custom string shown instead of a specific line number. � � � N)�__name__� __module__�__qualname__�__doc__�HIDDEN�VISIBLE�SINGLE� � �1/usr/lib/python3/dist-packages/stack_data/core.pyr- r- 2 s) � � � � � � � � �F��G��F�F�Fr9 r- c �. � e Zd ZdZej Zej ZdS )�Variablear An expression that appears one or more times in source code and its associated value. This will usually be a variable but it can be any expression evaluated by pure_eval. - name is the source text of the expression. - nodes is a list of equivalent nodes representing the same expression. - value is the safely evaluated value of the expression. N)r1 r2 r3 r4 �object�__hash__�__eq__r8 r9 r: r<