MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / iter_canon_absorbed

Function iter_canon_absorbed

Scripts/codegen/_codegen_core.py:190–200  ·  view source on GitHub ↗

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])

Source from the content-addressed store, hash-verified

188
189
190def 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
203def compute_canon_absorbed(elem_canons: Iterable[str],

Callers 1

compute_canon_absorbedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected