source should be on Response as well as Responses

This commit is contained in:
jesopo 2020-04-21 21:16:18 +01:00
parent b00ecf6e86
commit b4f9cc02b9

View file

@ -40,8 +40,9 @@ class Responses(IMatchResponse):
class Response(Responses):
def __init__(self,
command: str,
params: List[TYPE_PARAM]=[]):
super().__init__([command], params)
params: List[TYPE_PARAM]=[],
source: Optional[IMatchResponseHostmask]=None):
super().__init__([command], params, source=source)
def __repr__(self) -> str:
return f"Response({self._commands[0]}: {self._params!r})"