mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
style: fix linting issues in copypaste.py
This commit is contained in:
parent
6f36a97c4a
commit
2a1065efc1
1 changed files with 6 additions and 1 deletions
|
@ -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,13 +47,14 @@ class ClipboardWatcher:
|
|||
self.watcher_thread = None
|
||||
self.stop_event = None
|
||||
|
||||
|
||||
def main():
|
||||
"""Example usage of the clipboard watcher"""
|
||||
from aider.io import InputOutput
|
||||
|
||||
io = InputOutput()
|
||||
watcher = ClipboardWatcher(io, verbose=True)
|
||||
|
||||
|
||||
try:
|
||||
watcher.start()
|
||||
while True:
|
||||
|
@ -59,5 +63,6 @@ def main():
|
|||
print("\nStopped watching clipboard")
|
||||
watcher.stop()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue