Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/openpyxl/descriptors/__pycache__/excel.cpython-37.pyc
Назад
B �5�g� � @ s d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m Z mZmZ ddl mZ G dd � d e�ZG d d� de�ZG dd � d e �Ze ZG dd� de �ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Zddd�ZdS ) z Excel specific descriptors � )�REL_NS)�safe_string)�Element� )�MatchPattern�MinMax�Integer�String�Sequence)�Serialisablec @ s e Zd ZdZdS )� HexBinaryz [0-9a-fA-F]+$N)�__name__� __module__�__qualname__�pattern� r r �P/home/digitalm-up/venv/lib/python3.7/site-packages/openpyxl/descriptors/excel.pyr s r c @ s e Zd ZdZdS )�UniversalMeasurez$[0-9]+(\.[0-9]+)?(mm|cm|in|pt|pc|pi)N)r r r r r r r r r s r c @ s e Zd ZdZeZdZdZdS )� TextPointzt Size in hundredths of points. In theory other units of measurement can be used but these are unbounded i��i� N)r r r �__doc__�int� expected_type�min�maxr r r r r s r c s( e Zd ZdZdZdZ� fdd�Z� ZS )� Percentagez&((100)|([0-9][0-9]?))(\.[0-9][0-9]?)?%i���i@B c sD t |t�r.d|kr.|�dd�}tt|�d �}tt| ��||� d S )N�%� i� )� isinstance�str�replacer �float�superr �__set__)�self�instance�value)� __class__r r r"