def __init__(self, patterns: Sequence[str]=(), ignore_patterns: Sequence[str]=(), build_commands: Sequence[BuildCommand]=(), charset: WatchCharset=_ASCII_CHARSET, restart: bool=True):
    super().__init__()
    self.patterns = patterns
    self.ignore_patterns = ignore_patterns
    self.build_commands = build_commands
    self.charset: WatchCharset = charset
    self.restart_on_changes = restart
    self._current_build: subprocess.Popen
    self.debouncer = Debouncer(self)
    self.matching_path: Optional[Path] = None
    self.builds_succeeded: List[bool] = []
    self.wait_for_keypress_thread = threading.Thread(None, self._wait_for_enter)
    self.wait_for_keypress_thread.start()
def __init__(self, patterns: Sequence[str]=(), ignore_patterns: Sequence[str]=(), build_commands: Sequence[BuildCommand]=(), charset: WatchCharset=_ASCII_CHARSET, restart: bool=True):
    super().__init__()
    self.patterns = patterns
    self.ignore_patterns = ignore_patterns
    self.build_commands = build_commands
    self.charset: WatchCharset = charset
    self.restart_on_changes = restart
    self._current_build: subprocess.Popen
    self.debouncer = Debouncer(self)
    self.matching_path: Optional[Path] = None
    self.builds_succeeded: List[bool] = []
    self.wait_for_keypress_thread = threading.Thread(None, self._wait_for_enter)
    self.wait_for_keypress_thread.start()