From 2b8ed43250b5ef12c917898be6c56b84152f968e Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Wed, 7 Apr 2021 13:35:48 +0300 Subject: [PATCH] signer: Add self to abstract method signature The actual implementation is correct, the abc is missing self. --- securesystemslib/signer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/securesystemslib/signer.py b/securesystemslib/signer.py index ed8e994c..43834f5c 100644 --- a/securesystemslib/signer.py +++ b/securesystemslib/signer.py @@ -66,7 +66,7 @@ class Signer: __metaclass__ = abc.ABCMeta @abc.abstractmethod - def sign(payload: bytes) -> "Signature": + def sign(self, payload: bytes) -> "Signature": """Signs a given payload by the key assigned to the Signer instance. Arguments: