HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/flake8/__pycache__/violation.cpython-310.pyc
o

%we��@s�dZddlmZddlZddlZddlZddlmZddlmZddl	m
Z
ddl	mZe�e
�Zejdd	�ddd��ZGdd�de�ZdS)z3Contains the Violation error class used internally.�)�annotationsN)�Match)�
NamedTuple)�defaults)�utilsi)�maxsize�
physical_line�str�return�Match[str] | NonecCstj�|�S)N)r�NOQA_INLINE_REGEXP�search)r�r�I/home/arjun/projects/env/lib/python3.10/site-packages/flake8/violation.py�
_find_noqasrc@sLeZdZUdZded<ded<ded<ded<ded<d	ed
<ddd�ZdS)�	Violationz2Class representing a violation reported by Flake8.r	�code�filename�int�line_number�
column_number�textz
str | Noner�disable_noqa�boolr
cCs�|j}|rdS|durt�|j|j�}t|�}|dur#t�d|�dS|��d}|dur5t�d|�dSt	t
�|��}|j|vsI|j�
t|��rRt�d||�dSt�d||�dS)	z�Determine if a comment has been added to ignore this line.

        :param disable_noqa:
            Whether or not users have provided ``--disable-noqa``.
        :returns:
            True if error is ignored in-line, False otherwise.
        FNz%r is not inline ignored�codesz%%r is ignored by a blanket ``# noqa``Tz5%r is ignored specifically inline with ``# noqa: %s``z,%r is not ignored inline with ``# noqa: %s``)r�	linecache�getlinerrr�LOG�debug�	groupdict�setr�parse_comma_separated_listr�
startswith�tuple)�selfrr�
noqa_match�	codes_strrrrr�is_inline_ignored s2��zViolation.is_inline_ignoredN)rrr
r)�__name__�
__module__�__qualname__�__doc__�__annotations__r'rrrrrs
r)rr	r
r)r+�
__future__r�	functoolsr�logging�typingrr�flake8rr�	getLoggerr(r�	lru_cacherrrrrr�<module>s