def _path_matches(self, path: Path) -> bool:
    'Returns true if path matches according to the watcher patterns'
    return ((not any((path.match(x) for x in self.ignore_patterns))) and any((path.match(x) for x in self.patterns)))
Returns true if path matches according to the watcher patterns
def _path_matches(self, path: Path) -> bool:
    
    return ((not any((path.match(x) for x in self.ignore_patterns))) and any((path.match(x) for x in self.patterns)))