"misplaced type annotation"

This commit is contained in:
Jean-Paul Calderone 2021-11-22 08:45:10 -05:00
parent b92343c664
commit d1839187f1

View File

@ -48,10 +48,10 @@ class CleartextLeaseSerializer(object):
)
def unserialize(self, data):
# type: (bytes) -> LeaseInfo
"""
Load a lease with cleartext secrets from the given bytes representation.
"""
# type: (bytes) -> LeaseInfo
# In v1 of the immutable schema lease secrets are stored plaintext.
# So load the data into a plain LeaseInfo which works on plaintext
# secrets.