def guess_type(value: str) -> str | None:
    """
    Guess the type of an observable based on its value.

    Returns the type if it can be guessed, otherwise None.
    """
    value = refang(value.strip())
    for obs_type, obj in TYPE_MAPPING.items():
        if not hasattr(obj, "validator"):
            continue
        if obj.validator(value):
            return obs_type
    return None

    Guess the type of an observable based on its value.

    Returns the type if it can be guessed, otherwise None.
    
core/schemas/observable.py