Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def create(value: str) -> "EntryKey":
# pylint: disable=len-as-condition
if not 0 < len(value) <= 255 or any(c not in PRINTABLE for c in value):
raise ValueError("Invalid EntryKey", value)
return typing.cast(EntryKey, value)