style: fix linting issues in copypaste.py

This commit is contained in:
Paul Gauthier (aider) 2024-12-05 18:43:16 -08:00
parent 6f36a97c4a
commit 2a1065efc1

View file

@ -1,7 +1,9 @@
import threading
import time
import pyperclip
class ClipboardWatcher:
"""Watches clipboard for changes and updates IO placeholder"""
@ -29,6 +31,7 @@ class ClipboardWatcher:
except Exception as e:
if self.verbose:
from aider.dump import dump
dump(f"Clipboard watcher error: {e}")
continue
@ -44,6 +47,7 @@ class ClipboardWatcher:
self.watcher_thread = None
self.stop_event = None
def main():
"""Example usage of the clipboard watcher"""
from aider.io import InputOutput
@ -59,5 +63,6 @@ def main():
print("\nStopped watching clipboard")
watcher.stop()
if __name__ == "__main__":
main()