Skip to content

removeprefix

faststream.rabbit.shared.utils.removeprefix #

removeprefix(string: str, prefix: str) -> str
Source code in faststream/rabbit/shared/utils.py
def removeprefix(string: str, prefix: str) -> str:
    if string.startswith(prefix):
        return string[len(prefix) :]
    return string

Last update: 2023-11-13