diff options
| author | 2019-06-20 17:58:49 +0100 | |
|---|---|---|
| committer | 2019-06-20 17:58:49 +0100 | |
| commit | 01ddc04bb91017b3ccd167234bce0415c47375d1 (patch) | |
| tree | f6fc757027611f8e0775fcaa2a68457c78d0a93e /src/utils | |
| parent | remove extra formatted.notice format param (diff) | |
| signature | ||
fix hostmask_match_many type hinting
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/irc/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/irc/__init__.py b/src/utils/irc/__init__.py index dd4fdaff..13414ed3 100644 --- a/src/utils/irc/__init__.py +++ b/src/utils/irc/__init__.py @@ -330,7 +330,8 @@ class BatchType(object): t = list(set([type])&self._names) return t[0] if t else None -def hostmask_match_many(hostmasks: typing.List[str], pattern: str) -> str: +def hostmask_match_many(hostmasks: typing.List[str], pattern: str + ) -> typing.Optional[str]: part1_out = [] for part1 in pattern.split("?"): part2_out = [] |
