code: def pack(self, value=None):
          
          if isinstance(value, Match):
              return value.pack()
          elif value is None:
              self._update_match_length()
              packet = super().pack()
              return self._complete_last_byte(packet)
          raise PackException(f'Match can\'t unpack "{value}".')
docs: Pack and complete the last byte by padding.