from typing import Any from AetherAgentsServer.Utils.RE import RE class Check: @staticmethod def is_key(item:Any) -> bool: return isinstance(item, str) and item != "" and bool(RE.KEY.match(item))