=S d dl mZ d dlmZmZmZ d dlmZ d dlm Z m Z d dlmZ d dl mZ dd Z e e d e dZddZdddZ e ej ee e dS ) )annotations)context inference_tipnodes)register_module_extender)_extract_single_nodeparse) PY39_PLUS)AstroidManagerreturnnodes.Modulec t d S )zThe RegexFlag enum exposes all its entries by updating globals(). We hard-code the flags for now. # pylint: disable-next=line-too-long See https://github.com/mrabarnett/mrab-regex/blob/2022.10.31/regex_3/regex.py#L200 aA A = ASCII = 0x80 # Assume ASCII locale. B = BESTMATCH = 0x1000 # Best fuzzy match. D = DEBUG = 0x200 # Print parsed pattern. E = ENHANCEMATCH = 0x8000 # Attempt to improve the fit after finding the first # fuzzy match. F = FULLCASE = 0x4000 # Unicode full case-folding. I = IGNORECASE = 0x2 # Ignore case. L = LOCALE = 0x4 # Assume current 8-bit locale. M = MULTILINE = 0x8 # Make anchors look for newline. P = POSIX = 0x10000 # POSIX-style matching (leftmost longest). R = REVERSE = 0x400 # Search backwards. S = DOTALL = 0x10 # Make dot match newline. U = UNICODE = 0x20 # Assume Unicode locale. V0 = VERSION0 = 0x2000 # Old legacy behaviour. DEFAULT_VERSION = V0 V1 = VERSION1 = 0x100 # New enhanced behaviour. W = WORD = 0x800 # Default Unicode word breaks. X = VERBOSE = 0x40 # Ignore whitespace and comments. T = TEMPLATE = 0x1 # Template (present because re module has it). )r k/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/astroid/brain/brain_regex.py_regex_transformr s r regexz? @classmethod def __class_getitem__(cls, item): return cls node nodes.Callboolc | j dk ot | j t j o| j j dk o~t | j t j o_t | j j dk oBt | j j d t j o| j j d j dv S )zCheck for regex.Pattern or regex.Match call in stdlib. Match these patterns from stdlib/re.py ```py Pattern = type(...) Match = type(...) ``` zregex.regextype r > MatchPattern)rootname isinstancefuncr NameparentAssignlentargets AssignName)r s r _looks_like_pattern_or_matchr&