add __repr__ to Line

This commit is contained in:
jesopo 2020-03-11 20:25:18 +00:00
parent f1a1079873
commit 9e5afb9f16
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,9 @@ class Line(object):
return self.format() == other.format()
else:
return False
def __repr__(self) -> str:
return (f"Line(tag={self.tags}, source={self.source}"
f", command={self.command}, params={self.params})")
_hostmask: typing.Optional[Hostmask] = None
@property