aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/pgp/wrapper.py
diff options
context:
space:
mode:
authorJ08nY2017-07-27 19:23:14 +0200
committerJ08nY2017-07-27 19:23:14 +0200
commit7f7fa136794732d3b50ee2d1d7df73e01c1ff823 (patch)
tree11c0ae8af1cf0934eed6d9c68316e757eb3c53bf /src/mailman_pgp/pgp/wrapper.py
parentc401f2c6cc5f0aa4c6de245dcf252d3bbcc920fd (diff)
downloadmailman-pgp-7f7fa136794732d3b50ee2d1d7df73e01c1ff823.tar.gz
mailman-pgp-7f7fa136794732d3b50ee2d1d7df73e01c1ff823.tar.zst
mailman-pgp-7f7fa136794732d3b50ee2d1d7df73e01c1ff823.zip
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()