mirror of
https://github.com/kirill-markin/repo-to-text.git
synced 2025-12-05 19:12:24 -08:00
strinc typing
This commit is contained in:
parent
d93a1d1fb0
commit
46941115f1
1 changed files with 2 additions and 1 deletions
|
|
@ -216,7 +216,8 @@ def save_repo_to_text(path='.', output_dir=None, to_stdout=False) -> str:
|
|||
try:
|
||||
import importlib.util
|
||||
if importlib.util.find_spec("pyperclip"):
|
||||
import pyperclip
|
||||
# Import pyperclip only if it's available
|
||||
import pyperclip # type: ignore
|
||||
pyperclip.copy(output_text)
|
||||
logging.debug('Repository structure and contents copied to clipboard')
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue