scholarly-python-package / scholarly

Retrieve author and publication information from Google Scholar in a friendly, Pythonic way without having to worry about CAPTCHAs!
https://scholarly.readthedocs.io/
The Unlicense
1.29k stars 292 forks source link

Type mismatch in `_navigator.search_authors()` #527

Open YoungMind1 opened 7 months ago

YoungMind1 commented 7 months ago

search_authors() return type should be either Generator[Author, None, None] or Iterator[Author]; currently it is Author.

YoungMind1 commented 7 months ago

I couldn't setup a proper python3.8 env in order to fully test. I think Generator[Author, None, None] should do the trick for python3.8, in python 3.9 and later [Author] should suffice.