VL idZddlmZddlZddlZddlZddlmZddlm Z ddl m Z ddl m Z ejeZej d d d ZGd d e Zy)z3Contains the Violation error class used internally.) annotationsN)Match) NamedTuple)defaults)utilsi)maxsizec@tjj|S)N)rNOQA_INLINE_REGEXPsearch) physical_lines V/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/flake8/violation.py _find_noqars  & & - -m <<cVeZdZUdZded<ded<ded<ded<ded<d ed <d d Zy ) Violationz2Class representing a violation reported by Flake8.strcodefilenameint line_number column_numbertextz str | Noner c|j}|ry|*tj|j|j}t |}|t jd|y|jd}|t jd|yttj|}|j|vs$|jjt|rt jd||yt jd||y)zDetermine 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. Fz%r is not inline ignoredcodesz%%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 linecachegetlinerrrLOGdebug groupdictsetrparse_comma_separated_listr startswithtuple)self disable_noqar noqa_match codes_strrs r is_inline_ignoredzViolation.is_inline_ignored s**   %--dmmT=M=MNM .   II0$ 7((*73   II=t DE44Y?@ 99 !5!5eEl!C IIG   :D) rN)r%boolreturnr))__name__ __module__ __qualname____doc____annotations__r(rr rrs+< IM I%rr)r rr*zMatch[str] | None)r. __future__r functoolsrloggingrertypingrflake8rr getLoggerr+r lru_cacherrr0rr r9sa9"g!S!="=/ /r