

@classmethod
def is_valid(cls, s):
    try:
        s.from_string(s)
        return True
    except:
        return False

dataset/ETHPy150Open matrix-org/synapse/synapse/types.py DomainSpecificString.is_valid/VarMisuse@19/22 `cls`->`s`