(expr, ignore: list | None = None)
| 77 | |
| 78 | |
| 79 | def _tokenize_partial(expr, ignore: list | None = None) -> str: |
| 80 | # Helper function to "tokenize" the operands |
| 81 | # that are not in the `ignore` list |
| 82 | ignore = ignore or [] |
| 83 | return _tokenize_deterministic( |
| 84 | *[ |
| 85 | op |
| 86 | for i, op in enumerate(expr.operands) |
| 87 | if i >= len(expr._parameters) or expr._parameters[i] not in ignore |
| 88 | ] |
| 89 | ) |
| 90 | |
| 91 | |
| 92 | class LRU(UserDict[K, V]): |
no test coverage detected
searching dependent graphs…