# sqlalchemy 2.1.9 (MIT), harvested by tools/harvest_corpus.py
=== input
Returns a copy of the BitString with both leading and trailing
        characters removed.
        If omitted or None, ``'char'`` defaults to ``"0"``::

            BitString("00010101000").rstrip() == BitString("10101")
            BitString("11110101111").rstrip("1") == BitString("1010")
        
=== parse rest
short_description: |
  Returns a copy of the BitString with both leading and trailing
  characters removed.
  If omitted or None, ``'char'`` defaults to ``"0"``::
long_description: |
      BitString("00010101000").rstrip() == BitString("10101")
      BitString("11110101111").rstrip("1") == BitString("1010")
blank_after_short_description: True
blank_after_long_description: False
style: rest
=== detect
rest
=== compose rest
Returns a copy of the BitString with both leading and trailing
characters removed.
If omitted or None, ``'char'`` defaults to ``"0"``::

    BitString("00010101000").rstrip() == BitString("10101")
    BitString("11110101111").rstrip("1") == BitString("1010")
