scholarly icon indicating copy to clipboard operation
scholarly copied to clipboard

Type mismatch in `_navigator.search_authors()`

Open YoungMind1 opened this issue 2 years ago • 1 comments

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

YoungMind1 avatar Nov 30 '23 09:11 YoungMind1

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.

YoungMind1 avatar Dec 01 '23 08:12 YoungMind1