MCPcopy
hub / github.com/vinta/awesome-python / flush_group

Function flush_group

website/readme_parser.py:330–342  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

328 current_cat_name = None
329
330 def flush_group() -> None:
331 nonlocal current_group_name, current_group_cats
332 if current_group_cats:
333 name = current_group_name or "Other"
334 groups.append(
335 ParsedGroup(
336 name=name,
337 slug=slugify(name),
338 categories=list(current_group_cats),
339 )
340 )
341 current_group_name = None
342 current_group_cats = []
343
344 for node in nodes:
345 bold_name = _is_bold_marker(node)

Callers 1

_parse_grouped_sectionsFunction · 0.85

Calls 2

ParsedGroupClass · 0.85
slugifyFunction · 0.85

Tested by

no test coverage detected