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