python/ray/autoscaler/_private/kuberay/autoscaling_config.py
def _get_memory(
    ray_start_params: Dict[str, str], k8s_resource_limits: Dict[str, Any]
) -> Optional[int]:
    """Get memory resource annotation from ray_start_params, if it is set there.

    TODO, maybe: Consider container resource limits as in
    https://github.com/ray-project/ray/pull/14567/files
    """
    if "memory" in ray_start_params:
        return int(ray_start_params["memory"])
    return None
Get memory resource annotation from ray_start_params, if it is set there.

    TODO, maybe: Consider container resource limits as in
    https://github.com/ray-project/ray/pull/14567/files
    
Get memory resource annotation from ray_start_params, if it is set there.
Get memory resource annotation from ray_start_params if it is set there .
def _get_memory(
    ray_start_params: Dict[str, str], k8s_resource_limits: Dict[str, Any]
) -> Optional[int]:
    if "memory" in ray_start_params:
        return int(ray_start_params["memory"])
    return None
def _get_memory ( ray_start_params : Dict [ str , str ] , k8s_resource_limits : Dict [ str , Any ] ) -> Optional [ int ] : if "memory" in ray_start_params : return int ( ray_start_params [ "memory" ] ) return None
Get memory resource annotation from ray_start_params, if it is set there.
Get memory resource annotation from ray_start_params if it is set there .
"""Get memory resource annotation from ray_start_params, if it is set there.

    TODO, maybe: Consider container resource limits as in
    https://github.com/ray-project/ray/pull/14567/files
    """
ray_start_params
Dict[str, str]
k8s_resource_limits
Dict[str, Any]