federated/main.py
def remove_slash(path: str) -> str:
    """Remove slash in the end of path if present.

    Args:
        path (str): Path.

    Returns:
        str: Path without slash.
    """
    if path[-1] == "/":
        path = path[:-1]
    return path
Remove slash in the end of path if present.

    Args:
        path (str): Path.

    Returns:
        str: Path without slash.
    
Remove slash in the end of path if present.
Remove slash in the end of path if present .
def remove_slash(path: str) -> str:
    if path[-1] == "/":
        path = path[:-1]
    return path
def remove_slash ( path : str ) -> str : if path [ - 1 ] == "/" : path = path [ : - 1 ] return path
Remove slash in the end of path if present.
Remove slash in the end of path if present .
"""Remove slash in the end of path if present.

    Args:
        path (str): Path.

    Returns:
        str: Path without slash.
    """
Path without slash.
Path without slash .
str
path
str
None