Yield every attr absorbed by any canonicalisation in ``elem_canons``. Skips unknown canon keys silently — diagnostics for those live in the rule-validity drift checks.
(elem_canons: Iterable[str],
canonicalizations: Dict[str, Any])
| 188 | |
| 189 | |
| 190 | def iter_canon_absorbed(elem_canons: Iterable[str], |
| 191 | canonicalizations: Dict[str, Any]) -> Iterator[str]: |
| 192 | """Yield every attr absorbed by any canonicalisation in |
| 193 | ``elem_canons``. Skips unknown canon keys silently — diagnostics |
| 194 | for those live in the rule-validity drift checks.""" |
| 195 | if not canonicalizations: |
| 196 | return |
| 197 | for c in elem_canons: |
| 198 | cd = canonicalizations.get(c) |
| 199 | if cd: |
| 200 | yield from cd.get("absorbs_attrs", ()) |
| 201 | |
| 202 | |
| 203 | def compute_canon_absorbed(elem_canons: Iterable[str], |
no outgoing calls
no test coverage detected