<s>[INST] import math

def get_square_root(n) -> float:
    try:
        return math.pow(n, 1/2)
    except OverflowError:
        return "too large"
    except TypeError:
        return "requires numeric parameter"

if __name__ == "__main__":
    print(get_square_root(-2))

Since this question about try and except, does it sound right?[/INST]