Skip to content

Commit

Permalink
fix up docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-schulz-mh authored Dec 27, 2024
1 parent 8324523 commit fea67b4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion singer_sdk/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ def md5(string: str) -> str:


def sha256(value: str) -> str:
"""Digest a string using SHA256. This is a function for inline calculations."""
"""Digest a string using SHA256. This is a function for inline calculations.
Args:
string: String to digest.
Returns:
A string digested into SHA256.
"""
return hashlib.sha256(value.encode("utf-8")).hexdigest()


Expand Down

0 comments on commit fea67b4

Please sign in to comment.