removeprefix faststream.rabbit.shared.utils.removeprefix # removeprefix(string: str, prefix: str) -> str Source code in faststream/rabbit/shared/utils.py 40 41 42 43def removeprefix(string: str, prefix: str) -> str: if string.startswith(prefix): return string[len(prefix) :] return string Last update: 2023-11-13