code: def key_flags(self):
          
          if 'KeyFlags' in self._signature.subpackets:
              return next(iter(self._signature.subpackets['h_KeyFlags'])).flags
          return set()
docs: A ``set`` of :py:obj:`~constants.KeyFlags` specified in this signature, if any. Otherwise, an empty ``set``.