Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/jedi/plugins/__pycache__/stdlib.cpython-39.pyc
Ðазад
a j�h6v � @ sj 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 dZ4dZ5dd� Z6dd� Z7d�dd�Z8e8ddd�d d!� �Z9e8d�d"d#� �Z:e8d$�d�d%d&��Z;e8d'�d(d)� �Z<G d*d+� d+e�Z=e8d,dd-�d.d/� �Z>G d0d1� d1e-�Z?e8d2ddd3�d4d5� �Z@e8d6ddd7�d8d9� �ZAG d:d;� d;e�ZBe8d2�d<d=� �ZCG d>d?� d?e�ZDG d@dA� dAe�ZEG dBdC� dCe�ZFe8d2ddd3�dDdE� �ZGG dFdG� dGe-e�ZHe8dHddI�dJdK� �ZIdLdM� ZJG dNdO� dOe�ZKG dPdQ� dQeK�ZLG dRdS� dSe3�ZMG dTdU� dUe�ZNdVdW� ZOdXdY� ZPe8dZ�d[d\� �ZQe8d]�d^d_� �ZRd`da� ZSG dbdc� dcee!�ZTG ddde� dee2�ZUG dfdg� dge+�ZVG dhdi� die�ZWe8dH�djdk� �ZXG dldm� dme�ZYG dndo� doee#�ZZe8dpddd3�dqdr� �Z[dsdt� Z\e8dpddI�dudv� �Z]e;e<e>e@eAe9e:eCeGeIdw� eQeQdx�dydz� d{dz� d|�d}eJieOePeXd~�deQid�eRid�e[id�eQid�dz� d�dz� d��d�eSieSeSd��eSeSd��e\ej^j_�e\ej^j`�e\ej^ja�e]d��d��Zbd�d�� ZcG d�d�� d�e�Zdd�d�� ZedS )�a� 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 s � fdd�}|S )Nc s� � ��fdd�}z�j j}W n ty. Y n�0 �j}|d urL|�� rLd}n |d urf|�� rf|�� }n|� S ��� s|��� r�|� S zt | | }W n t y� Y n0 |�� |d�S |� S )Nc s ��� d�S )N�� arguments� r&