bgddlmZddlZddlmZddlmZdZejeej Z GddeZ e dZ e d Zd ee ezed Zd deddfdddgZd deDZd$dZGddeZGddeZGdd eZd%d#ZdS)&) annotationsN) Generator) NamedTuplea (?:^\s*\#.*|\s*| # Comment line, or whitespaces, \s*\#.*(?=\#.*?\bpylint:)) # or a beginning of an inline comment # followed by "pylint:" pragma (\# # Beginning of comment .*? # Anything (as little as possible) \bpylint: # pylint word and column \s* # Any number of whitespaces ([^;#\n]+)) # Anything except semicolon or hash or # newline (it is the second matched group) # and end of the first matched group [;#]{0,1} # From 0 to 1 repetition of semicolon or hash c$eZdZUded<ded<dS)PragmaRepresenterstraction list[str]messagesN)__name__ __module__ __qualname____annotations__k/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/pylint/utils/pragma_parser.pyrrs'KKKrr)z disable-allz skip-file)z disable-nextz disable-msgz enable-msgdisableenable|T)keyreverseKEYWORDz\b(sz)\b)MESSAGE_STRINGz[0-9A-Za-z\-\_]{2,})ASSIGN=)MESSAGE_NUMBERz[CREIWF]{1}\d*c#2K|]\}}d|dd|ddVdS)z(?P)Nr).0 token_name token_rgxs r r$7sS I):((()((((rr rr r returncX|s|tvrtd|t||S)Nz1The keyword is not followed by message identifier)MESSAGE_KEYWORDSInvalidPragmaErrorr)r r s remit_pragma_representerr)=s>  "222 ?    VX . ..rc$eZdZdZdfd ZxZS) PragmaParserErrorz6A class for exceptions thrown by pragma_parser module.messagertokenr%Nonecp||_||_t|jdS)z:args message: explain the reason why the exception has been thrown :args token: token concerned by the exception. N)r,r-super__init__)selfr,r- __class__s rr1zPragmaParserError.__init__Hs3   &&&&&r)r,rr-rr%r.)r r r__doc__r1 __classcell__)r3s@rr+r+EsC@@''''''''''rr+ceZdZdZdS)UnRecognizedOptionErrorz6Thrown in case the of a valid but unrecognized option.Nr r rr4rrrr7r7Qs@@@@rr7ceZdZdZdS)r(z%Thrown in case the pragma is invalid.Nr8rrrr(r(Us////rr( pylint_pragma(Generator[PragmaRepresenter, None, None]c#"Kd}g}d}d}tjt|D]}|j}|}|dkr9|s4|rt d||rt d|t ddd}ng|rt d|pd|dkr"|rt||V|}g}|tv}n+|d vr| |d}ntd |}|rt||VdSt d|) NFrz&The keyword doesn't support assignmentzThe keyword is unknownz!Missing keyword before assignmentz'The = sign is missing after the keywordr>rrzToken not recognized) refinditer TOK_REGEX lastgroupgroupr7r(r)r'append RuntimeError)r:r r assignment_requiredprevious_tokenmokindvalues r parse_pragmarJYsFHNk)]33##|  8  & R1@&"10.))LbQQQ"'    7$96OOOr)r rr r r%r)r:rr%r;) __future__rr>collections.abcrtypingr OPTION_RGXcompileVERBOSE OPTION_POr frozensetATOMIC_KEYWORDSr'joinsortedlen ALL_KEYWORDSTOKEN_SPECIFICATIONr@r) Exceptionr+r7r(rJrrrrZs #""""" %%%%%%   BJz2: . .   )8999Fxx F?- -3EEE *|****+.)  HH!4   //// ' ' ' ' ' ' ' 'AAAAA/AAA00000*000.P.P.P.P.P.Pr