code: def add_comment(self, line: str) -> None:
          '''Keeping track of "last comment" for section and parameter '''
          # the rule is like
          #
          # # comment line  --> add to last comment
          # blank line --> clears last comment
          # [ ] --> use last comment
          # parameter: --> use last comment
          # All others: clear last comment
          self._last_comment += (' ' if self._last_comment else '') + \
              line.lstrip('#').strip(f add_comment(self, line: str) -> None:
          '''Keeping track of "last comment" for section and parameter '''
          # the rule is like
          #
          # # comment line  --> add to last comment
          # blank line --> clears last comment
          # [ ] --> use last comment
          # parameter: --> use last comment
          # All others: clear last comment
          self._last_comment += (' ' if self._last_comment else '') + \
              line.lstrip('#').strip()
docs: Keeping track of "last comment" for section and parameter