Skip to content

Commit e84208d

Browse files
committed
Typo annotate publication_id in search_citedby
1 parent abd56b5 commit e84208d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scholarly/_scholarly.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import csv
77
import pprint
88
import datetime
9-
from typing import Dict, List
109
import re
10+
from typing import Dict, List, Union
1111
from ._navigator import Navigator
1212
from ._proxy_generator import ProxyGenerator
1313
from dotenv import find_dotenv, load_dotenv
@@ -159,11 +159,11 @@ def search_pubs(self,
159159
sort_by=sort_by, include_last_year=include_last_year, start_index=start_index)
160160
return self.__nav.search_publications(url)
161161

162-
def search_citedby(self, publication_id: int, **kwargs):
162+
def search_citedby(self, publication_id: Union[int, str], **kwargs):
163163
"""Searches by Google Scholar publication id and returns a generator of Publication objects.
164164
165165
:param publication_id: Google Scholar publication id
166-
:type publication_id: int
166+
:type publication_id: int or str
167167
168168
For the remaining parameters, see documentation of `search_pubs`.
169169
"""

0 commit comments

Comments
 (0)