Skip to content

Commit d5b407b

Browse files
ramonpetgrave64jku
authored andcommitted
docstring formatting
Signed-off-by: Ramon Petgrave <[email protected]>
1 parent 29ba622 commit d5b407b

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

sigstore/_internal/rekor/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ def __init__(self, http_error: requests.HTTPError):
6060

6161

6262
class RekorLogSubmitter(ABC):
63-
"""Abstract class to represent a Rekor log entry submitter.
63+
"""
64+
Abstract class to represent a Rekor log entry submitter.
6465
65-
Intended to be implemented by RekorClient and RekorV2Client
66+
Intended to be implemented by RekorClient and RekorV2Client.
6667
"""
6768

6869
@abstractmethod

sigstore/_internal/rekor/client_v2.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444

4545

4646
class RekorV2Client(RekorLogSubmitter):
47-
"""The internal Rekor client for the v2 API
47+
"""
48+
The internal Rekor client for the v2 API.
4849
4950
See https://github.com/sigstore/rekor-tiles/blob/main/CLIENTS.md
5051
"""
@@ -94,9 +95,11 @@ def create_entry(self, payload: EntryRequestBody) -> LogEntry:
9495

9596
@staticmethod
9697
def _get_key_details(certificate: Certificate) -> common_v1.PublicKeyDetails:
97-
"""Determine PublicKeyDetails from a certificate
98+
"""
99+
Determine PublicKeyDetails from a certificate
98100
99-
We know that sign.Signer only uses secp256r1 so do not support anything else"""
101+
We know that sign.Signer only uses secp256r1, so do not support anything else.
102+
"""
100103
public_key = certificate.public_key()
101104
if isinstance(public_key, EllipticCurvePublicKey):
102105
if public_key.curve.name == "secp256r1":

0 commit comments

Comments
 (0)