aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/pgp/wrapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman_pgp/pgp/wrapper.py')
-rw-r--r--src/mailman_pgp/pgp/wrapper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman_pgp/pgp/wrapper.py b/src/mailman_pgp/pgp/wrapper.py
index a1041ad..af6ce44 100644
--- a/src/mailman_pgp/pgp/wrapper.py
+++ b/src/mailman_pgp/pgp/wrapper.py
@@ -85,6 +85,7 @@ class PGPWrapper():
"""
:return:
+ :rtype: typing.Generator[pgpy.PGPMessage|pgpy.PGPSignature]
"""
if self.mime.is_signed():
yield from self.mime.get_signature()
@@ -139,11 +140,11 @@ class PGPWrapper():
"""
return self.mime.has_encryption() or self.inline.has_encryption()
-
def get_encrypted(self):
"""
:return:
+ :rtype: typing.Generator[pgpy.PGPMessage]
"""
if self.mime.is_signed():
yield from self.mime.get_encrypted()