def _maybe_typed_value(val: Union[(type, str)]) -> Value:
    if (val is type(None)):
        return KnownValue(None)
    elif (val is Hashable):
        return _HashableValue(val)
    return TypedValue(val)
def _maybe_typed_value(val: Union[(type, str)]) -> Value:
    if (val is type(None)):
        return KnownValue(None)
    elif (val is Hashable):
        return _HashableValue(val)
    return TypedValue(val)