in atr/analysis.py [0:0]
def elements_update(elements: dict[str, str | None], core: str, analysis: Analysis) -> None:
if core not in analysis.versions:
analysis.versions[core] = set()
if core not in analysis.subs:
analysis.subs[core] = set()
if core not in analysis.templates:
analysis.templates[core] = {}
if elements["version"] is not None:
analysis.versions[core].add(elements["version"])
if elements["sub"] is not None:
analysis.subs[core].add(elements["sub"])
if elements["template"] is not None:
if elements["template"] not in analysis.templates[core]:
analysis.templates[core][elements["template"]] = 0
analysis.templates[core][elements["template"]] += 1