Undocumented
Function | infer_pattern_match |
Infer re.Pattern and re.Match as classes. For PY39+ add __class_getitem__ . |
Constant | CLASS_GETITEM_TEMPLATE |
Undocumented |
Function | _looks_like_pattern_or_match |
Check for re.Pattern or re.Match call in stdlib. |
Function | _re_transform |
Undocumented |
__class_getitem__
.Parameters | |
node:nodes.Call | Undocumented |
ctx:Optional[ | Undocumented |
Check for re.Pattern or re.Match call in stdlib.
Match these patterns from stdlib/re.py `py Pattern = type(...) Match = type(...) `
Parameters | |
node:nodes.Call | Undocumented |
Returns | |
bool | Undocumented |