Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/jedi/inference/compiled/__pycache__/__init__.cpython-39.pyc
Ðазад
a j�h[ � @ s\ d dl mZmZmZmZmZ d dlmZ dd� ZG dd� de�Z dd� Z d d � Zdd� Zd S )� )� CompiledValue�CompiledName�CompiledValueFilter�CompiledValueName�create_from_access_path)�LazyValueWrapperc C sJ | j }|dv r$|j\}t|�� �}nt|�� �}|�|�\}|�� \}|S )N)�None�True�False)Zbuiltins_moduleZnon_stub_value_set�nextZget_filters�getZinfer)�inference_state�stringZtyping_builtins_module�builtins�filter_�name�value� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/jedi/inference/compiled/__init__.py�builtin_from_name s r c s8 e Zd ZdZdd� Z� fdd�Zdd� Zdd � Z� ZS ) � ExactValuez� This class represents exact values, that makes operations like additions and exact boolean values possible, while still being a "normal" stub. c C s |j | _ || _d S �N)r �_compiled_value)�self�compiled_valuer r r �__init__ s zExactValue.__init__c s |dv rt | j|�S t� �|�S )N)Zget_safe_valueZexecute_operationZ access_handle�negateZ py__bool__Zis_compiled)�getattrr �super�__getattribute__)r r �� __class__r r r s zExactValue.__getattribute__c C s t | j| jjj��� \}|S r )r r r r Zstring_name�execute_with_values)r �instancer r r �_get_wrapped_value$ s � zExactValue._get_wrapped_valuec C s d| j j| jf S )Nz<%s: %s>)r! �__name__r )r r r r �__repr__) s zExactValue.__repr__) r% � __module__�__qualname__�__doc__r r r$ r&