XylotrechusZ
�
� h3 � �( � d Z ddlZddlmZ ddlmZ ddlmZ ddlmZm Z m
Z
mZ ddlm
Z
ddlmZmZ dd lmZ d
Zefdeded
efd�Z ed�� � efdeded
eeef fd�� � Zdeded
e
eeef fd�Zdeded
e
eeef fd�Zdeded
e
eeef fd�Z d"dedede
e e deedf d
e
eeef f
d�Zded
efd�Zded
efd�Zdedee d
efd�Zded ed
efd!�ZdS )#zIContains all logic related to placing an import within a certain section.� N)�fnmatch)� lru_cache)�Path)� FrozenSet�Iterable�Optional�Tuple)�sections)�DEFAULT_CONFIG�Config)�exists_case_sensitive�LOCALFOLDER�name�config�returnc �. � t | |� � d S )z8Returns the section placement for the given module name.r )�module_with_reason�r r s �\/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/isort/place.py�moduler s � ��d�F�+�+�A�.�.� i� )�maxsizec � � t | |� � p8t | |� � p(t | |� � pt | |� � p|j dfS )zPReturns the section placement for the given module name alongside the reasoning.z.Default option in Config or universal default.)�_forced_separate�_local�_known_pattern� _src_path�default_sectionr s r r r se � � ��v�&�&� V��$���� V��$��'�'� V� �T�6�"�"� V�
�"�$T�U�r c � � |j D ]K}|}|� d� � s|� d�}t | |� � st | d|z � � r
|d|� d�fc S �Ld S )N�*�.zMatched forced_separate (z) config value.)�forced_separate�endswithr )r r r"