/opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/__pycache__/objects.cpython-311.pyc (17242B)
§
ê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)ÚAnyÚTypeVar)ÚbasesÚ
decoratorsÚutil)ÚInferenceContext)ÚAttributeInferenceErrorÚInferenceErrorÚMroErrorÚ
SuperError)ÚAstroidManager)Únode_classesÚscoped_nodeszinterpreter.objectmodel)é é )Úcached_property)ÚLiteral)ÚcachedpropertyÚ_Tc ó: — e Zd ZdZdd„Zd
dd
„Zed„ ¦ « ZdS )Ú FrozenSetz.Class representing a FrozenSet composite node.ÚreturnúLiteral['builtins.frozenset']c ó — dS )Nzbuiltins.frozenset© ©Úselfs úa/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/astroid/objects.pyÚpytypezFrozenSet.pytype/ s € Ø#Ð#ó NÚcontextúInferenceContext | NoneÚkwargsr c + ó K — | V — d S ©Nr ©r r# r% s r Ú_inferzFrozenSet._infer2 ó è è € ؈
ˆ
ˆ
ˆ
ˆ
r" c ó^ — t ¦ « j }| d¦ « d S )NÚ frozensetr ©r Úbuiltins_moduleÚgetattr©r Úast_builtinss r Ú_proxiedzFrozenSet._proxied5 s) € å%Ñ'Ô'Ô7ˆØ×#Ò# KÑ0Ô0°Ô3Ð3r" )r r r' ©r# r$ r% r )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r! r) r r2 r r" r r r , sb € € € € € Ø8Ð8ð$ð $ð $ð $ðð ð ð ð ð ð4ð 4ñ „_ð4ð 4ð 4r" r c ó® ‡ — e Zd ZdZ ej d„ ¦ « Zˆ fd„Zddd „Zd
„ Z e
d„ ¦ « Zdd„Zdd„Z
ed„ ¦ « Zdd„Z ddd„Zddd„Zˆ 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 ú
zSuper.I s € µk×6LÒ6LÑ6NÔ6N€ r" c óŽ •— || _ || _ d| _ || _ || _ t ¦ « ¦ « d S )NF)ÚtypeÚmro_pointerÚ_class_basedÚ_self_classÚ_scopeÚsuperÚ__init__)r r@ Úmro_typeÚ
self_classÚscopeÚ __class__s €r rE zSuper.__init__K sE ø€ ؈Œ Ø&ˆÔØ!ˆÔØ%ˆÔ؈ŒÝ
‰Œ×ÒÑÔÐÐÐr" Nr# r$ r% r c + ó K — | V — d S r' r r( s r r) zSuper._inferS r* r" c ó2 — t | j t j ¦ « st d| ¬¦ « ‚t | j t j ¦ « rd| _ | j }nMt | j dd¦ « }t |t j t j f¦ « st d| ¬¦ « ‚|j
st d| ¬¦ « ‚| ¦ « }| j |vrt d| ¬¦ « ‚| | j ¦ « }||dz d… S ) zBGet the MRO which will be used to lookup attributes in this super.zIThe first argument to super must be a subtype of type, not {mro_pointer}.)Úsuper_Tr2 NzPThe second argument to super must be an instance or subtype of type, not {type}.z*Unable to call super on old-style classes.é )
Ú
isinstancer@ r ÚClassDefr r? rA r/ r ÚInstanceÚnewstyleÚmroÚindex)r rF rR rS s r Ú super_mrozSuper.super_mroV s7 € å˜$Ô*LÔ,AÑBÔBð Ýð+àðñ ô ð
õ �d”i¥Ô!6Ñ7Ô7ð à $ˆDÔØ”yˆHˆHå˜tœy¨*°dÑ;Ô;ˆHݘh¬½Ô9NÐ(OÑPÔPð
Ý ð?àðñ ô ð ð Ô ð XÝÐIÐRVÐWÑWÔWÐWà�lŠl‰nŒnˆØÔ 3Ð&Ð&Ýð;àðñ ô ð
ð — ’ ˜$Ô*Ñ+Ô+ˆØ�5˜1‘9�;�;ÔÐr" c ó^ — t ¦ « j }| d¦ « d S )NrD r r- r0 s r r2 zSuper._proxiedz s) € å%Ñ'Ô'Ô7ˆØ×#Ò# GÑ,Ô,¨QÔ/Ð/r" r úLiteral['builtins.super']c ó — dS )Nzbuiltins.superr r s r r! zSuper.pytype s € ØÐr" Ústrc ó — dS )NzSuper ofr r s r Údisplay_typezSuper.display_type‚ s € ؈zr" c ó — | j j S )z Get the name of the MRO pointer.)r@ Únamer s r r\ z
Super.name… s € ð ÔÔ$Ð$r" úLiteral['super']c ó — dS )NrD r r s r ÚqnamezSuper.qnameŠ s € ؈wr" r\ c # ó� K — |dk r| j |¦ « V — dS | ¦ « }nY# t $ r}t d| |||j ¬¦ « |‚d}~wt $ r%}t d| |||j |j ¬¦ « |‚d}~ww xY wd}|D �]m}||j vrŒ
d}t j || g|| ¬ ¦ « D �]>}t |t j ¦ « s|V — Œ"|j d
k rt j ||¦ « V — ŒE| j j d
k r|j dk r|V — Œe| j s|j dk r|V — Œ|t |t&