aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar jesopo2020-01-22 15:04:48 +0000
committerGravatar jesopo2020-01-22 15:04:48 +0000
commitf79aa036f26a2c32d8c356055053c3bb3e2d3b34 (patch)
treed97c6dcb0612936ee6e4f0915f85639bde2aa735 /src/utils
parentadd an optional mask pattern arg to !clear (diff)
signature
fix hostmask_match_many typehint
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/irc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/irc.py b/src/utils/irc.py
index 7194663f..373f3930 100644
--- a/src/utils/irc.py
+++ b/src/utils/irc.py
@@ -284,7 +284,7 @@ def hostmask_parse(hostmask: str):
return HostmaskPattern(hostmask, re.compile(".".join(part1_out)))
def hostmask_match_many(hostmasks: typing.List[str], pattern: HostmaskPattern,
- ) -> typing.Optional[str]:
+ ) -> typing.Generator[str, None, None]:
for hostmask in hostmasks:
if pattern.match(hostmask):
yield hostmask