asweigart / pyperclip

Python module for cross-platform clipboard functions.
https://pypi.python.org/pypi/pyperclip
BSD 3-Clause "New" or "Revised" License
1.59k stars 193 forks source link

Add mypy Typehints to pyperclip.copy #210

Open isidore opened 2 years ago

isidore commented 2 years ago

Mypy complains about the lack of typehints in the 3rd party library (which is amazing, thank you). I believe the only method exposed is pyperclip.copy(input: str) -> None It would be great if this could be added.

rafo commented 1 year ago

As in https://inventwithpython.com/beyond/chapter11.html from the author of pyperclip

Darkavid commented 3 months ago

after 3 years, this is still opened, still missing, still needed, the static analyzers are still complaining but the "consider donating to its creator on Patreon" (for not maintaining the lib) is still in README.

@asweigart, any comments on how to resolve this contradiction? 😄

jpgoldberg commented 1 month ago

I have pull request that would resolve this: #255

I hadn't seen this issue at the time I created the PR.