mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 22:03:13 -07:00
Add type-hints for SickBeard.api_call
and SickBeard.process_response
This commit is contained in:
parent
4d0ce3bcd2
commit
a21283bd2e
1 changed files with 2 additions and 2 deletions
|
@ -432,7 +432,7 @@ class SickBeard:
|
|||
# delete any unused params so we don't pass them to SB by mistake
|
||||
[fork_params.pop(k) for k, v in list(fork_params.items()) if v is None]
|
||||
|
||||
def api_call(self):
|
||||
def api_call(self) -> ProcessResult:
|
||||
"""Perform a base sickbeard api call."""
|
||||
self._process_fork_prarams()
|
||||
logger.debug(f'Opening URL: {self.url} with params: {self.sb_init.fork_params}', self.sb_init.section)
|
||||
|
@ -468,7 +468,7 @@ class SickBeard:
|
|||
|
||||
return self.process_response(response)
|
||||
|
||||
def process_response(self, response):
|
||||
def process_response(self, response: requests.Response) -> ProcessResult:
|
||||
"""Iterate over the lines returned, and log.
|
||||
|
||||
:param response: Streamed Requests response object.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue