mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-24 22:42:56 +08:00
Merge pull request #350 from svtkachenko/fix_mypy
Fix mypy error for github module
This commit is contained in:
commit
a3a29ae1d5
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ def page_from_response(page: str, response: Response) -> Optional[Any]:
|
|||
if page_link:
|
||||
parsed = urlparse.urlparse(page_link.get("url"))
|
||||
params = urlparse.parse_qs(parsed.query)
|
||||
pages = params.get('page', [None])
|
||||
pages: List[Any] = params.get('page', [None])
|
||||
page_number = pages[0] and int(pages[0])
|
||||
return page_number
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue