Make IRCArgs mutable
This commit is contained in:
parent
8c94bcf6ca
commit
5baa688fbc
1 changed files with 3 additions and 1 deletions
|
@ -17,8 +17,10 @@ class IRCArgs(object):
|
||||||
return "IRCArgs(%s)" % self._args
|
return "IRCArgs(%s)" % self._args
|
||||||
def __len__(self) -> int:
|
def __len__(self) -> int:
|
||||||
return len(self._args)
|
return len(self._args)
|
||||||
def __getitem__(self, index) -> str:
|
def __getitem__(self, index: int) -> str:
|
||||||
return self._args[index]
|
return self._args[index]
|
||||||
|
def __setitem__(self, index: int, value: str):
|
||||||
|
self._args[index] = value
|
||||||
|
|
||||||
class Hostmask(object):
|
class Hostmask(object):
|
||||||
def __init__(self, nickname: str, username: str, hostname: str,
|
def __init__(self, nickname: str, username: str, hostname: str,
|
||||||
|
|
Loading…
Reference in a new issue