parameters: (self)
return_statement: return next(self.tag_generator)
docstring: Increments and returns a counter to be used as the next message tag.
docstring_summary: Increments and returns a counter to be used as the next message tag.
docstring_tokens: Increments and returns a counter to be used as the next message tag .
function: def delivery_tag(self) -> str:
          """Increments and returns a counter to be used as the next message tag."""
          if not hasattr(self, 'tag_generator'):
              def simple_tags():
                  count = 1
                  while True:
                      yield str(count)
                      count += 1
  
              self.tag_generator = simple_tags()
          return next(self.tag_generator)
function_tokens: def delivery_tag ( self ) -> str : if not hasattr ( self , 'tag_generator' ) : def simple_tags ( ) : count = 1 while True : yield str ( count ) count += 1 self . tag_generator = simple_tags ( ) return next ( self . tag_generator )