glob.py.compile should have a return type

This commit is contained in:
jesopo 2020-06-07 17:45:47 +01:00
parent dbc93355dc
commit 17ecd1416a

View file

@ -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))