MCPcopy Create free account
hub / github.com/Julow/Unexpected-Keyboard / missing_some_of

Function missing_some_of

check_layout.py:28–34  ·  view source on GitHub ↗
(keys, symbols, class_name=None)

Source from the content-addressed store, hash-verified

26 return ", ".join(sorted(list(keys)))
27
28def missing_some_of(keys, symbols, class_name=None):
29 if class_name is None:
30 class_name = "of [" + ", ".join(symbols) + "]"
31 missing = set(symbols).difference(keys)
32 if len(missing) > 0 and len(missing) != len(symbols):
33 warn("Layout includes some %s but not all, missing: %s" % (
34 class_name, key_list_str(missing)))
35
36def missing_required(keys, symbols, msg):
37 missing = set(symbols).difference(keys)

Callers 1

check_layoutFunction · 0.85

Calls 2

key_list_strFunction · 0.85
warnFunction · 0.70

Tested by

no test coverage detected