Ro\1 d Z ddlmZ ddlZddlmZ ddlmZmZ ddl m
Z
mZmZ ddl
mZ ddlmZmZmZmZ dd lmZ dd
lmZmZ ej d Zej dk r
dd
lmZ ddlmZ nddlmZ ddl m!Z ed Z" G d dej# Z$ G d dej% Z& G d de
j' Z( G d de
j' Z) G d de
j* Z+ G d de
j* Z, G d de
j* Z- G d d ej. Z/ej% e)fej0 _1 G d! d"ej. Z2dS )#a"
Inference objects are a way to represent composite AST nodes,
which are used only as inference results, so they can't be found in the
original AST tree. For instance, inferring the following frozenset use,
leads to an inferred FrozenSet:
Call(func=Name('frozenset'), args=Tuple(...))
)annotationsN) Generator)AnyTypeVar)bases
decoratorsutil)InferenceContext)AttributeInferenceErrorInferenceErrorMroError
SuperError)AstroidManager)node_classesscoped_nodeszinterpreter.objectmodel) )cached_property)Literal)cachedproperty_Tc : e Zd ZdZddZd
dd
Zed ZdS ) FrozenSetz.Class representing a FrozenSet composite node.returnLiteral['builtins.frozenset']c dS )Nzbuiltins.frozenset selfs a/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/astroid/objects.pypytypezFrozenSet.pytype/ s ## NcontextInferenceContext | Nonekwargsr c + K | V d S Nr r r# r% s r _inferzFrozenSet._infer2
r" c ^ t j }| d d S )N frozensetr r builtins_modulegetattrr ast_builtinss r _proxiedzFrozenSet._proxied5 s) %''7##K0033r" )r r r' r# r$ r% r )__name__
__module____qualname____doc__r! r) r r2 r r" r r r , sb 88$ $ $ $ 4 4 _4 4 4r" r c e Zd ZdZ ej d Z fdZddd Zd
Z e
d ZddZddZ
ed ZddZ dddZdddZ xZS )Supera Proxy class over a super call.
This class offers almost the same behaviour as Python's super,
which is MRO lookups for retrieving attributes from the parents.
The *mro_pointer* is the place in the MRO from where we should
start looking, not counting it. *mro_type* is the object which
provides the MRO, it can be both a type or an instance.
*self_class* is the class where the super call is, while
*scope* is the function where the super call is.
c 4 t S r' )objectmodel
SuperModelr r" r