File: //home/arjun/projects/env/lib/python3.10/site-packages/flake8/__pycache__/utils.cpython-310.pyc
o
%we� � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
Z
ddlmZ ddlmZ ddlmZ ddlmZ e
�d�Ze
�d �Ze
�d
�ZefdCdd�ZG dd� de�Zd\ZZZZZdZe
�d�efe
�d�efe
�d�efe
�d�efe
�d�efgZ dDdd�Z!dEd"d#�Z"ej#fdFd'd(�Z$ej#fdGd*d+�Z%ej&d,d-�dHd.d/��Z'dId0d1�Z(dJd3d4�Z)dKd7d8�ZdLd<d=�Z*dHd>d?�Z+dMdAdB�Z,dS )NzUtility methods for flake8.� )�annotationsN)�
NamedTuple)�Pattern)�Sequence)�
exceptionsz[,\s]z
[,\t\n\r\f\v]z[-_.]+�value�str�regexp�Pattern[str]�return� list[str]c C s8 t | t�s J | ��|�| �}dd� |D �}dd� |D �S )a Parse a comma-separated list.
:param value:
String to be parsed and normalized.
:param regexp:
Compiled regular expression used to split the value when it is a
string.
:returns:
List of values with whitespace stripped.
c s s � | ]}|� � V qd S �N)�strip��.0�item� r �E/home/arjun/projects/env/lib/python3.10/site-packages/flake8/utils.py� <genexpr>) s � z-parse_comma_separated_list.<locals>.<genexpr>c S s g | ]}|r|�qS r r r r r r �
<listcomp>* s z.parse_comma_separated_list.<locals>.<listcomp>)�
isinstancer �split)r r � separated�item_genr r r �parse_comma_separated_list s
r c @ s e Zd ZU ded<