diff --git a/cwt/cose.py b/cwt/cose.py index d77f0c7..03aa1a3 100644 --- a/cwt/cose.py +++ b/cwt/cose.py @@ -203,7 +203,7 @@ def decode(self, data: Union[bytes, CBORTag], key: COSEKey) -> Dict[int, Any]: Args: data (Union[bytes, CBORTag]): A byte string or cbor2.CBORTag of an - encoded data. + encoded data. key (COSEKey): A COSE key to verify and decrypt the encoded data. Returns: Dict[int, Any]: A decoded CBOR-like object. diff --git a/docs/conf.py b/docs/conf.py index cfc73a5..3194fe5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,6 +43,7 @@ ("py:class", "_cbor2.CBORTag"), ("py:class", "cwt.exceptions.CWTError"), ("py:class", "cwt.recipient.Recipient"), + ("py:class", "CBORTag"), ] # Add any paths that contain templates here, relative to this directory.