Skip to content

Commit

Permalink
Set the default for the Public Key comment to an empty string instead…
Browse files Browse the repository at this point in the history
… of None to avoid forcing users to set the comment manually when exporting to string/file
  • Loading branch information
scheibling committed May 18, 2023
1 parent 73a889c commit 77c8228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sshkey_tools/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class PublicKey:
"""

def __init__(
self, key: PrivkeyClasses = None, comment: Union[str, bytes] = None, **kwargs
self, key: PrivkeyClasses = None, comment: Union[str, bytes] = "", **kwargs
) -> None:
self.key = key
self.comment = comment
Expand Down

0 comments on commit 77c8228

Please sign in to comment.