openslides_backend/action/actions/agenda_item/agenda_tree.py
def to_roman(number: int) -> str:
    """
    Converts an arabic number within range from 1 to 4999 to the
    corresponding roman number. Returns the input converted as string on error
    conditions or higher numbers.
    """
    try:
        return roman.toRoman(number)
    except (roman.NotIntegerError, roman.OutOfRangeError):
        return str(number)

    Converts an arabic number within range from 1 to 4999 to the
    corresponding roman number. Returns the input converted as string on error
    conditions or higher numbers.
    
Converts an arabic number within range from 1 to 4999 to the
corresponding roman number. Returns the input converted as string on error
conditions or higher numbers.
Converts an arabic number within range from 1 to 4999 to the corresponding roman number . Returns the input converted as string on error conditions or higher numbers .
def to_roman(number: int) -> str:
    try:
        return roman.toRoman(number)
    except (roman.NotIntegerError, roman.OutOfRangeError):
        return str(number)
def to_roman ( number : int ) -> str : try : return roman . toRoman ( number ) except ( roman . NotIntegerError , roman . OutOfRangeError ) : return str ( number )
Converts an arabic number within range from 1 to 4999 to the
corresponding roman number.
Converts an arabic number within range from 1 to 4999 to the corresponding roman number .
"""
    Converts an arabic number within range from 1 to 4999 to the
    corresponding roman number. Returns the input converted as string on error
    conditions or higher numbers.
    """
number
int