Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/flask_sqlalchemy/__pycache__/model.cpython-39.pyc
Ðазад
a t�h| � @ s� d dl Z d dlZd dlmZ d dlmZmZ d dlmZ ddl m Z dd� Ze �d �Z d d� ZG dd � d e�ZG dd� de�ZG dd� deee�ZG dd� de�ZdS )� N)�inspect)�DeclarativeMeta� declared_attr)�_get_table_key� ��to_strc C s� | j �dd�s*tdd� | jdd� D ��s.dS | jD ]L}d|j vrDq4t|j d t�rZ dS || u pz|j �dd�pzt|t� S dS ) a@ Determine whether ``__tablename__`` should be automatically generated for a model. * If no class in the MRO sets a name, one should be generated. * If a declared attr is found, it should be used instead. * If a name is found, it should be used if the class is a mixin, otherwise one should be generated. * Abstract models should not have one generated. Later, :meth:`._BoundDeclarativeMeta.__table_cls__` will determine if the model looks like single or joined-table inheritance. If no primary key is found, the name will be unset. Z__abstract__Fc s s | ]}t |t�V qd S �N)� isinstancer )�.0�b� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/flask_sqlalchemy/model.py� <genexpr> � z'should_set_tablename.<locals>.<genexpr>r N� __tablename__T)�__dict__�get�any�__mro__r r r )�cls�baser r r �should_set_tablename s �� � �r z([A-Z]+)(?=[a-z0-9])c C s dd� }t �|| ��d�S )Nc S s<