glob.py.compile should have a return type
This commit is contained in:
parent
dbc93355dc
commit
17ecd1416a
1 changed files with 1 additions and 1 deletions
|
@ -50,5 +50,5 @@ class Glob(object):
|
|||
self._pattern = pattern
|
||||
def match(self, s: str) -> bool:
|
||||
return _match(self._pattern, s)
|
||||
def compile(pattern: str):
|
||||
def compile(pattern: str) -> Glob:
|
||||
return Glob(_collapse(pattern))
|
||||
|
|
Loading…
Reference in a new issue