| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/jedi/plugins/__pycache__/ |
Upload File : |
�
p�{c�u � �� � d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZm
Z
mZmZmZ ddlmZ dd lmZ dd
lmZmZ ddlmZmZmZmZmZ ddlmZmZ dd
l m!Z! ddl"m#Z# ddlm$Z$ ddl%m&Z&m'Z'm(Z( ddl)m*Z*m+Z+ ddl,m-Z-m.Z.m/Z/m0Z0 ddl1m2Z2m3Z3 dZ4dZ5d� Z6d� Z7 dvd�Z8 e8dd�� � d� � � Z9 e8d� � d� � � Z: e8d� � dwd �� � Z; e8d!� � d"� � � Z< G d#� d$e� � Z= e8d%d�&� � d'� � � Z> G d(� d)e-� � Z? e8d*dd�+� � d,� � � Z@ e8d-dd�.� � d/� � � ZA G d0� d1e� � ZB e8d*� � d2� � � ZC G d3� d4e� � ZD G d5� d6e� � ZE G d7� d8e� � ZF e8d*dd�+� � d9� � � ZG G d:� d;e-e� � ZH e8d<d�=� � d>� � � ZId?� ZJ G d@� dAe� � ZK G dB� dCeK� � ZL G dD� dEe3� � ZM G dF� dGe� � ZNdH� ZOdI� ZP e8dJ� � dK� � � ZQ e8dL� � dM� � � ZRdN� ZS G dO� dPee!� � ZT G dQ� dRe2� � ZU G dS� dTe+� � ZV G dU� dVe� � ZW e8d<� � dW� � � ZX G dX� dYe� � ZY G dZ� d[ee#� � ZZ e8d\dd�+� � d]� � � Z[d^� Z\ e8d\d�=� � d_� � � Z]e;e<e>e@eAe9e:eCeGeId`�
eQeQda�db� dc� dd�deeJieOePeXdf�dgeQidheRidie[idjeQidk� dl� dm�dneSidoeSidoeSi e\ej^ j_ � � e\ej^ j` � � e\ej^ ja � � e]dp�dq�Zbdr� Zc G ds� dte� � Zddu� ZedS )xa�
Implementations of standard library functions, because it's not possible to
understand them with Jedi.
To add a new implementation, create a function and add it to the
``_implemented`` dict at the bottom of this module.
Note that this module exists only to implement very specific functionality in
the standard library. The usual way to understand the standard library is the
compiled module that returns the types for C-builtins.
� N)� Parameter)�debug)�
safe_property)�get_str_or_none)�iterate_argument_clinic�
ParamIssue�repack_with_argument_clinic�AbstractArguments�TreeArgumentsWrapper)�analysis)�compiled)�AnonymousMethodExecutionContext�MethodExecutionContext)�ContextualizedNode� NO_VALUES�ValueSet�ValueWrapper�LazyValueWrapper)�
ClassValue�ModuleValue)�
ClassMixin)�
FunctionMixin)�iterable)�
LazyTreeValue�LazyKnownValue�LazyKnownValues)� ValueName�BaseTreeParamName)�AttributeOverwrite�publish_method�ParserTreeFilter�
DictFilter)�AbstractSignature�SignatureWrappera _property = property
_tuple = tuple
from operator import itemgetter as _itemgetter
from collections import OrderedDict
class {typename}(tuple):
__slots__ = ()
_fields = {field_names!r}
def __new__(_cls, {arg_list}):
'Create new instance of {typename}({arg_list})'
return _tuple.__new__(_cls, ({arg_list}))
@classmethod
def _make(cls, iterable, new=tuple.__new__, len=len):
'Make a new {typename} object from a sequence or iterable'
result = new(cls, iterable)
if len(result) != {num_fields:d}:
raise TypeError('Expected {num_fields:d} arguments, got %d' % len(result))
return result
def _replace(_self, **kwds):
'Return a new {typename} object replacing specified fields with new values'
result = _self._make(map(kwds.pop, {field_names!r}, _self))
if kwds:
raise ValueError('Got unexpected field names: %r' % list(kwds))
return result
def __repr__(self):
'Return a nicely formatted representation string'
return self.__class__.__name__ + '({repr_fmt})' % self
def _asdict(self):
'Return a new OrderedDict which maps field names to their values.'
return OrderedDict(zip(self._fields, self))
def __getnewargs__(self):
'Return self as a plain tuple. Used by copy and pickle.'
return tuple(self)
# These methods were added by Jedi.
# __new__ doesn't really work with Jedi. So adding this to nametuples seems
# like the easiest way.
def __init__(self, {arg_list}):
'A helper function for namedtuple.'
self.__iterable = ({arg_list})
def __iter__(self):
for i in self.__iterable:
yield i
def __getitem__(self, y):
return self.__iterable[y]
{field_defs}
zW {name} = _property(_itemgetter({index:d}), doc='Alias for field number {index:d}')
c � � � � fd�}|S )Nc �� �� �� ��� fd�} � j j }� j }|�|� � � rd}n5|�)|� � � r|� � � }n
|� � S � � � � s� � � � r
|� � S t | | } |� �|�� � S # t $ r Y nw xY w# t $ r Y nw xY w |� � S )Nc � �� ��� �� � S )N�� arguments� )r) �callback�values ����5/usr/lib/python3/dist-packages/jedi/plugins/stdlib.py�callz&execute.<locals>.wrapper.<locals>.callj s �� ��8�E�Y�7�7�7�7� �builtins)r) r+ )�name�string_name�parent_context�is_builtins_module� is_module�
py__name__�is_bound_method�is_instance�_implemented�KeyError�AttributeError)r, r) r. �obj_name�p�module_name�funcr+ s `` �r- �wrapperzexecute.<locals>.wrapperi s< ���� � 8� 8� 8� 8� 8� 8� 8� G��z�-�H� �$�A��}��!5�!5�!7�!7�}�(�����1�;�;�=�=���l�l�n�n����t�v�v�
��$�$�&�&�
�%�*;�*;�*=�*=�
� �t�v�v�
�
G�#�K�0��:�� �t�E�Y��F�F�F�F�� �
�
�
���
�����'