remove_prefix
faststream.cli.utils.parser.remove_prefix #
Removes a prefix from a given text.
PARAMETER | DESCRIPTION |
---|---|
text | The text from which the prefix will be removed. TYPE: |
prefix | The prefix to be removed from the text. TYPE: |
RETURNS | DESCRIPTION |
---|---|
str | The text with the prefix removed. If the text does not start with the prefix, the original text is returned. TYPE: |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
Source code in faststream/cli/utils/parser.py
Last update: 2023-11-13