diff options
| author | 2020-01-22 15:04:48 +0000 | |
|---|---|---|
| committer | 2020-01-22 15:04:48 +0000 | |
| commit | f79aa036f26a2c32d8c356055053c3bb3e2d3b34 (patch) | |
| tree | d97c6dcb0612936ee6e4f0915f85639bde2aa735 /src/utils | |
| parent | add 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.py | 2 |
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 |
