iterate over the list of compiled pattern matchers and attempt to match the pattern
(cls, value, signatures: list)
| 97 | |
| 98 | @classmethod |
| 99 | def find_matches(cls, value, signatures: list): |
| 100 | """ |
| 101 | iterate over the list of compiled pattern matchers and |
| 102 | attempt to match the pattern |
| 103 | """ |
| 104 | if not isinstance(value, (str, nodes.String)): |
| 105 | return |
| 106 | value = str(value) |
| 107 | |
| 108 | for s in signatures: # type: PatternMatcher |
| 109 | if s.match(value): |
| 110 | yield s |
| 111 | |
| 112 | |
| 113 | class StringPatternMatcher(PatternMatcher, metaclass=ABCMeta): |