/opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/__pycache__
NameSizeModeActions
arguments.cpython-311.pyc138150644editdlrm
astroid_manager.cpython-311.pyc6160644editdlrm
bases.cpython-311.pyc360830644editdlrm
builder.cpython-311.pyc237050644editdlrm
const.cpython-311.pyc15540644editdlrm
constraint.cpython-311.pyc70310644editdlrm
context.cpython-311.pyc78590644editdlrm
decorators.cpython-311.pyc122110644editdlrm
exceptions.cpython-311.pyc204590644editdlrm
filter_statements.cpython-311.pyc74790644editdlrm
helpers.cpython-311.pyc150230644editdlrm
inference.cpython-311.pyc544630644editdlrm
inference_tip.cpython-311.pyc35800644editdlrm
manager.cpython-311.pyc222580644editdlrm
mixins.cpython-311.pyc11240644editdlrm
modutils.cpython-311.pyc304560644editdlrm
node_classes.cpython-311.pyc29970644editdlrm
objects.cpython-311.pyc172420644editdlrm
protocols.cpython-311.pyc386050644editdlrm
raw_building.cpython-311.pyc281980644editdlrm
rebuilder.cpython-311.pyc1050360644editdlrm
scoped_nodes.cpython-311.pyc10230644editdlrm
test_utils.cpython-311.pyc49130644editdlrm
transforms.cpython-311.pyc50210644editdlrm
typing.cpython-311.pyc28090644editdlrm
util.cpython-311.pyc91310644editdlrm
_ast.cpython-311.pyc56680644editdlrm
_backport_stdlib_names.cpython-311.pyc41110644editdlrm
_cache.cpython-311.pyc15040644editdlrm
__init__.cpython-311.pyc69400644editdlrm
__pkginfo__.cpython-311.pyc2510644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/astroid/__pycache__/helpers.cpython-311.pyc (15023B)
§ ªn|(üÊ Gãó—dZddlmZddlmZddlmZmZmZm Z m Z m Z ddl m Z mZddlmZmZmZmZmZddlmZddlmZmZd)d„Zd*d„Z d+d,d„Z d+d-d„Z d+d.d„Zd+d.d„Zd+d.d„Z d+d/d „Z!d+d0d"„Z"d1d#„Z#d1d$„Z$d1d%„Z%d2d'„Z&d+d.d(„Z'dS)3zVarious helper utilities.é)Ú annotations)Ú Generator)ÚbasesÚmanagerÚnodesÚobjectsÚ raw_buildingÚutil)Ú CallContextÚInferenceContext)ÚAstroidTypeErrorÚAttributeInferenceErrorÚInferenceErrorÚMroErrorÚ_NonDeducibleTypeHierarchy)Ú scoped_nodes)ÚInferenceResultÚSuccessfulInferenceResultÚcls_nameÚstrÚbuiltinsú nodes.ModuleÚreturnúnodes.ClassDefcó<—tj|¦«}||_|S©N)r Ú build_classÚparent)rrÚproxys úa/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/astroid/helpers.pyÚ_build_proxy_classr!s€Ý Ô $ XÑ .Ô .€EØ€E„LØ €LóÚfunctionú"nodes.Lambda | bases.UnboundMethodcóÚ—t|tj¦«r#| ¦«jdkrd}n"d}nt|t j¦«rd}nd}t||¦«S)NrÚbuiltin_function_or_methodr#Úmethod)Ú isinstancerÚLambdaÚrootÚnamerÚ BoundMethodr!)r#rrs r Ú_function_typer-sn€õ�(�LÔ/Ñ0Ô0ðØ �=Š=‰?Œ?Ô  :Ò -Ð -Ø3ˆHˆHà!ˆHˆHÝ �H�eÔ/Ñ 0Ô 0ðØˆˆàˆÝ ˜h¨Ñ 1Ô 1Ð1r"NÚnoderÚcontextúInferenceContext | Noneú-Generator[InferenceResult | None, None, None]c#óNK—tj¦«}|j}|p t¦«}| |¬¦«D�]`}t |t j¦«rB|jr|  |¬¦«}|r|V—ŒA|  d¦«dV—Œ_t |t j tj f¦«rt||¦«V—Œ˜t |t j¦«rt!d|¦«V—ŒÅt |t"j¦«rt&‚t |t(j¦«r|V—�Œt |tjt"jt0jf¦«r |jV—�ŒBt7dt9|¦«›d�¦«‚dS)N©r/ÚtyperÚmodulezWe don't handle z currently)rÚAstroidManagerÚbuiltins_moduler Úinferr(rÚClassDefÚnewstyleÚ metaclassÚgetattrr)rÚ UnboundMethodr-ÚModuler!rÚUnknownrr ÚUninferableBaseÚProxyÚSlicerÚSuperÚ_proxiedÚAssertionErrorr4)r.r/Úastroid_managerrÚinferredr;s r Ú _object_typerH-s»èè€õÔ,Ñ.Ô.€OØÔ.€HØÐ+Õ)Ñ+Ô+€Gà—J’J w�JÑ/Ô/ðPñPˆÝ �h¥ Ô 5Ñ 6Ô 6ð PØÔ ð Ø$×.Ò.°wÐ.Ñ?Ô?� ØðØ#�O�O�OØØ×"Ò" 6Ñ*Ô*¨1Ô-Ð -Ð -Ð -Ð -Ý ˜¥<Ô#6½Ô8KÐ"LÑ MÔ Mð PÝ  ¨8Ñ4Ô4Ð 4Ð 4Ð 4Ð 4Ý ˜¥,Ô"5Ñ 6Ô 6ð PÝ$ X¨xÑ8Ô8Ð 8Ð 8Ð 8Ð 8Ý ˜¥%¤-Ñ 0Ô 0ð PÝ Ð Ý ˜¥$Ô"6Ñ 7Ô 7ð P؈NˆNˆN‰NÝ ˜¥5¤;µ´ ½W¼]Ð"KÑ LÔ Lð PØÔ#Ð #Ð #Ð #Ñ #å Ð!NµD¸±N´NÐ!NÐ!NÐ!NÑOÔOÐ Oð'PðPr"úInferenceResult | Nonecóä— tt||¦«¦«}n#t$rtjcYSwxYwt |¦«dks|s tjSt |¦«dS)aVObtain the type of the given node. This is used to implement the ``type`` builtin, which means that it's used for inferring type calls, as well as used in a couple of other places in the inference. The node will be inferred first, so this function can support all sorts of objects, as long as they support inference. ér)ÚsetrHrr Ú UninferableÚlenÚlist)r.r/Útypess r Ú object_typerQJsv€ð Ý•L  wÑ/Ô/Ñ0Ô0ˆˆøÝ ð ð ð ÝÔÐÐÐð øøøå ˆ5�z„z�A‚~€~˜U€~ÝÔÐÝ �‰;Œ;�qŒ>Ðs ‚  9¸9cóL—t|ttf¦«s|f}n|}t|tj¦«r tjSd„|D¦«}|D]L}t|tj¦«rt d¦«‚| ¦«D] }||krdSŒ ŒMdS)Ncó^—g|]*}t|tj¦«s|n tj‘Œ+S©)r(rÚInstancer rM)Ú.0Úitems r ú z,_object_type_is_subclass..ks@€ðððà õ˜t¥U¤^Ñ4Ô4ÐJˆˆ½$Ô:Jðððr"z&arg 2 must be a type or tuple of typesTF)r(ÚtuplerOr r@rMr Úmro)Úobj_typeÚ class_or_seqr/Ú class_seqÚklassÚ obj_subclasss r Ú_object_type_is_subclassr`_sÖ€õ �l¥U­D MÑ 2Ô 2ð!Ø!�Oˆ ˆ à ˆ å�(�DÔ0Ñ1Ô1ð ÝÔÐððàðñô€IðððˆÝ �e�TÔ1Ñ 2Ô 2ð MÝ"Ð#KÑLÔLÐ Là$ŸLšL™NœNð ð ˆLؘuÒ$Ð$Ø�t�t�tð%ð ð ˆ5r"có’—t||¦«}t|tj¦«r tjSt |||¬¦«S)zýCheck if a node 'isinstance' any node in class_or_seq. :param node: A given node :param class_or_seq: Union[nodes.NodeNG, Sequence[nodes.NodeNG]] :rtype: bool :raises AstroidTypeError: if the given ``classes_or_seq`` are not types r3)rQr(r r@rMr`)r.r\r/r[s r Úobject_isinstancerb|sF€õ˜4 Ñ)Ô)€HÝ�(�DÔ0Ñ1Ô1ð ÝÔÐÝ # H¨lÀGÐ LÑ LÔ LÐLr"có~—t|tj¦«st|›d�¦«‚t |||¬¦«S)asCheck if a type is a subclass of any node in class_or_seq. :param node: A given node :param class_or_seq: Union[Nodes.NodeNG, Sequence[nodes.NodeNG]] :rtype: bool :raises AstroidTypeError: if the given ``classes_or_seq`` are not types :raises AstroidError: if the type of the given node cannot be inferred or its type's mro doesn't work z needs to be a ClassDef noder3)r(rr9Ú TypeErrorr`)r.r\r/s r Úobject_issubclassre‹sD€õ �d�EœNÑ +Ô +ð?ݘ4Ð=Ð=Ð=Ñ>Ô>Ð>Ý # D¨,ÀÐ HÑ HÔ HÐHr"únodes.NodeNG | bases.Proxycóà— | |¬¦«}t|¦«}n#ttf$rYdSwxYw t|¦«dS#t$rYdSt$r|cYSwxYw)z¡Return the inferred value for the given node. Return None if inference failed or if there is some ambiguity (more than one node has been inferred). r3N)r8ÚnextrÚ StopIteration)r.r/ÚinferitÚvalues r Ú safe_inferrl›s €ðØ—*’* W�*Ñ-Ô-ˆÝ�W‘ ” ˆˆøÝ �MÐ *ððð؈tˆtðøøøðÝ ˆW‰ Œ ˆ ؈tøÝ ððð؈tˆtÝ ðððØˆ ˆ ˆ ðøøøs$‚%(¨=¼=ÁAÁ A-Á A-Á,A-Úboolcóì— |jS#t$rYnwxYw|jD]L}t||¬¦«}t |t j¦«r||ust||¬¦«s d|_dSŒMd|_dS)z=Return whether all base classes of a class could be inferred.r3FT)Ú_all_bases_knownÚAttributeErrorrrlr(rr9Úhas_known_bases)r^r/ÚbaseÚresults r rqrq±s­€ð ØÔ%Ð%øÝ ð ð ð Ø ˆð øøøà” ð ð ˆÝ˜D¨'Ð2Ñ2Ô2ˆõ˜6¥<Ô#8Ñ9Ô9ð à˜ˆˆÝ" 6°7Ð;Ñ;Ô;ðð&+ˆEÔ "Ø�5�5ð ð "€EÔØ ˆ4s ‚ ‰ •có—ttt||f¦«¦«st‚t|j|jg¦«sdS || ¦«dd…vS#t $r }t|‚d}~wwxYw)NFéÿÿÿÿ)ÚallÚmaprqrr:rZr)Útype1Útype2Úes r Ú _type_checkr{ÅsŒ€Ý �s•? U¨E NÑ3Ô3Ñ 4Ô 4ð)Ý(Ð(å �” ¤Ð/Ñ 0Ô 0ð؈uð0ؘŸ š ™ œ  C R CÔ(Ð(Ð(øÝ ð0ð0ð0å(¨aÐ/øøøøð0øøøsÁ A(Á( A?Á2A:Á:A?có$—t||¬¦«S)z)Check if *type1* is a subtype of *type2*.©rxry©r{r}s r Ú is_subtyperÒs€å ˜U¨%Ð 0Ñ 0Ô 0Ð0r"có"—t||¦«S)z+Check if *type2* is a supertype of *type1*.r~r}s r Ú is_supertyper�×s€å �u˜eÑ $Ô $Ð$r"únodes.Const | Nonecó’—t¦«} | d|¬¦«D]Ž}t|tj¦«sŒ||_t g|¬¦«|_| ||¬¦«D]<}t|tj ¦«r t|j t¦«r|ccSŒ=Œ�n#t$rYnwxYwdS)zêGet the value as an index for the given instance. If an instance provides an __index__ method, then it can be used in some scenarios where an integer is expected, for instance when multiplying or subscripting a list. Ú __index__r3)ÚargsÚcalleeN)r Úigetattrr(rr,Ú boundnoder Ú callcontextÚinfer_call_resultrÚConstrkÚintr)r.r/rGrss r Úclass_instance_as_indexr�Üsñ€õÑ Ô €Gð  ØŸ š  k¸7˜ ÑCÔCð "ð "ˆHݘh­Ô(9Ñ:Ô:ð Øà $ˆGÔ Ý"-°2¸hÐ"GÑ"GÔ"GˆGÔ Ø"×4Ò4°TÀ7Ð4ÑKÔKð "ð "�ݘf¥e¤kÑ2Ô2ð"µzÀ&Ä,ÕPSÑ7TÔ7Tð"Ø!�M�M�M�M�Møð "ð  "øõ ð ð ð Ø ˆð øøøà ˆ4s�B#B7Â4B7Â7 CÃCcó<—ddlm}t||¬¦«}| d¬¦«}t |t j¦«rl|jdkrat|d¦«rQ|j |j krAd  |j |  ¦«j¦«}t|¦«‚|�t |t j¦«rt|¬ ¦«‚t |t$j¦«r5t |jt*t,f¦«rt/|j¦«St |t$jt$jt$j|f¦«rt/|j¦«St |t$j¦«rt/|j¦«St=||¬¦«}|st|¬ ¦«‚ t?|  d|¬¦«¦«}nb#tB$r"}tEt-|¦«¦«|‚d }~wtF$r+}tEd | $¦«›d �¦«|‚d }~wwxYw| %||¦«} t | t j¦«rt||¬ ¦«‚t?| d ¦«} t | t$j¦«r|  $¦«dkr| jS| �/t | tLj'¦«r|  (d¦«rdStEd| ›d�¦«‚)aðInfer length of given node object. :param Union[nodes.ClassDef, nodes.Instance] node: :param node: Node to infer length of :raises AstroidTypeError: If an invalid node is returned from __len__ method or no __len__ method exists :raises InferenceError: If the given node cannot be inferred or if multiple nodes are inferred or if the code executed in python would result in a infinite recursive check for length :rtype int: Integer length of node r)Ú FrozenSetr3T)ÚfutureÚ__len__rDzNSelf referential __len__ function will cause a RecursionError on line {} of {}N)r.zobject of type 'z' has no len())r.r/z builtins.intú'z,' object cannot be interpreted as an integer))Úastroid.objectsr�rlÚframer(rÚ FunctionDefr+ÚhasattrrDrÚformatÚlinenor*Úfilerr r@rr‹rkÚbytesrrNÚListÚSetÚTupleÚeltsÚDictÚitemsrQrhr‡rir rÚpytyperŠrrUÚ is_subtype_of) r.r/r�Ú inferred_nodeÚ node_frameÚmessageÚ node_typeÚlen_callrzrGÚ result_of_lens r Ú object_lenr©ós&€ð*Ð)Ð)Ð)Ð)Ð)å˜t¨WÐ5Ñ5Ô5€Mð—’ 4�Ñ(Ô(€Jå�:�|Ô7Ñ8Ô8ð &à ŒO˜yÒ (Ð (Ý �M :Ñ .Ô .ð )à Ô " jÔ&7Ò 7Ð 7ð 6ß6<²fØ” ˜TŸYšY™[œ[Ô-ñ7ô7ð õ ˜WÑ%Ô%Ð%àÐ¥ ¨=½$Ô:NÑ OÔ OÐÝ $Ð'Ñ'Ô'Ð'Ý�-¥¤Ñ-Ô-ð(µ*ØÔ�e¥S˜\ñ3ô3ð(õ�=Ô&Ñ'Ô'Ð'Ý�-¥%¤*­e¬i½¼ÀiÐ!PÑQÔQð'Ý�=Ô%Ñ&Ô&Ð&Ý�-¥¤Ñ,Ô,ð(Ý�=Ô&Ñ'Ô'Ð'å˜M°7Ð;Ñ;Ô;€IØ ð(Ý $Ð'Ñ'Ô'Ð'ðݘ ×*Ò*¨9¸gÐ*ÑFÔFÑGÔGˆˆøÝ ð.ð.ð.Ý�s 1™vœvÑ&Ô&¨AÐ-øøøøÝ "ðððÝØ A˜y×/Ò/Ñ1Ô1Ð AÐ AÐ Añ ô àð øøøøðøøøð ×)Ò)¨$°Ñ8Ô8€HÝ�(�DÔ0Ñ1Ô1ð9Ý $°Ð8Ñ8Ô8Ð8ݘ 4Ñ(Ô(€Må�=¥%¤+Ñ.Ô.ð#à × Ò Ñ "Ô " nÒ 4Ð 4àÔ"Ð"àÐÝ �m¥U¤^Ñ 4Ô 4ð à × 'Ò '¨Ñ 7Ô 7ð ð ˆqÝ ØGˆMÐGÐGÐGñ ô ðs$Ç$G,Ç, I Ç6HÈ I È &IÉI )rrrrrr)r#r$rrrrr)r.rr/r0rr1)r.rr/r0rrI)r/r0)r.rfr/r0rrI)r/r0rrm)rrm)r.rrr‚)(Ú__doc__Ú __future__rÚcollections.abcrÚastroidrrrrr r Úastroid.contextr r Úastroid.exceptionsr rrrrÚ astroid.nodesrÚastroid.typingrrr!r-rHrQr`rbrerlrqr{rr�r�r©rTr"r úr²sgðð  Ðà"Ð"Ð"Ð"Ð"Ð"à%Ð%Ð%Ð%Ð%Ð%àFÐFÐFÐFÐFÐFÐFÐFÐFÐFÐFÐFÐFÐFÐFÐFØ9Ð9Ð9Ð9Ð9Ð9Ð9Ð9ððððððððððððððð'Ð&Ð&Ð&Ð&Ð&ØEÐEÐEÐEÐEÐEÐEÐEððððð 2ð 2ð 2ð 2ð IMðPðPðPðPðPð<IMðððððð,@Dðððððð: Mð Mð Mð Mð Mð Ið Ið Ið Ið Ið"JNðððððð,ððððð( 0ð 0ð 0ð 0ð1ð1ð1ð1ð %ð%ð%ð%ð ðððð.MðMðMðMðMðMðMr"