fix hostmask_match_many typehint
This commit is contained in:
parent
ade5cbb1f3
commit
f79aa036f2
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ def hostmask_parse(hostmask: str):
|
||||||
return HostmaskPattern(hostmask, re.compile(".".join(part1_out)))
|
return HostmaskPattern(hostmask, re.compile(".".join(part1_out)))
|
||||||
|
|
||||||
def hostmask_match_many(hostmasks: typing.List[str], pattern: HostmaskPattern,
|
def hostmask_match_many(hostmasks: typing.List[str], pattern: HostmaskPattern,
|
||||||
) -> typing.Optional[str]:
|
) -> typing.Generator[str, None, None]:
|
||||||
for hostmask in hostmasks:
|
for hostmask in hostmasks:
|
||||||
if pattern.match(hostmask):
|
if pattern.match(hostmask):
|
||||||
yield hostmask
|
yield hostmask
|
||||||
|
|
Loading…
Reference in a new issue