MCPcopy
hub / github.com/github/awesome-copilot / has_key

Function has_key

skills/quality-playbook/quality_gate.py:513–515  ·  view source on GitHub ↗

True if `data` is a dict containing `key`.

(data, key)

Source from the content-addressed store, hash-verified

511
512
513def has_key(data, key):
514 """True if `data` is a dict containing `key`."""
515 return isinstance(data, dict) and key in data
516
517
518def get_str(data, key):

Callers 3

check_tdd_sidecarFunction · 0.85
check_recheck_sidecarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected