add 2 more instances of formatting violations

This commit is contained in:
Jonathan de Jong
2019-12-19 18:09:47 +01:00
parent b1248ff315
commit 0827d0d9ef
2 changed files with 4 additions and 3 deletions

View File

@ -56,7 +56,7 @@ class ID:
return self._b58_str
def __repr__(self) -> str:
return f"<libp2p.peer.id.ID ({self.to_string()})>"
return f"<libp2p.peer.id.ID ({self!s})>"
__str__ = pretty = to_string = to_base58