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): class Response(Responses):
def __init__(self, def __init__(self,
command: str, command: str,
params: List[TYPE_PARAM]=[]): params: List[TYPE_PARAM]=[],
super().__init__([command], params) source: Optional[IMatchResponseHostmask]=None):
super().__init__([command], params, source=source)
def __repr__(self) -> str: def __repr__(self) -> str:
return f"Response({self._commands[0]}: {self._params!r})" return f"Response({self._commands[0]}: {self._params!r})"