MCPcopy Index your code
hub / github.com/github/spec-kit / clean_integration_key

Function clean_integration_key

src/specify_cli/integration_state.py:105–109  ·  view source on GitHub ↗

Return a stripped integration key, or None for empty/non-string values.

(key: Any)

Source from the content-addressed store, hash-verified

103
104
105def clean_integration_key(key: Any) -> str | None:
106 """Return a stripped integration key, or None for empty/non-string values."""
107 if not isinstance(key, str) or not key.strip():
108 return None
109 return key.strip()
110
111
112def dedupe_integration_keys(keys: list[Any]) -> list[str]:

Callers 4

dedupe_integration_keysFunction · 0.85
default_integration_keyFunction · 0.85
write_integration_jsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected