aboutsummaryrefslogtreecommitdiff
path: root/gn3/llms/process.py
diff options
context:
space:
mode:
authorAlexander_Kabui2023-12-29 16:18:50 +0300
committerAlexander_Kabui2023-12-29 16:18:50 +0300
commit20ec28980a0a003cac408f6d8efcf4ef1c9c1ec8 (patch)
tree69cb74d348042bc2a4b78d9a5a1d09c83135eeee /gn3/llms/process.py
parentfb49b824bf7a90ecadf021c01c65880e78e74298 (diff)
downloadgenenetwork3-20ec28980a0a003cac408f6d8efcf4ef1c9c1ec8.tar.gz
fix mypy issues
Diffstat (limited to 'gn3/llms/process.py')
-rw-r--r--gn3/llms/process.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/llms/process.py b/gn3/llms/process.py
index 4220d7a..b8e7ded 100644
--- a/gn3/llms/process.py
+++ b/gn3/llms/process.py
@@ -30,7 +30,7 @@ def formatBibliographyInfo(bibInfo):
bibInfo = bibInfo.removesuffix('.txt')
elif isinstance(bibInfo, dict):
# format string bibliography information
- bibInfo = "{0}. ".format(bibInfo['author'], bibInfo['title'], bibInfo['year'], bibInfo['doi'])
+ bibInfo = "{0}.{1}.{2}.{3} ".format(bibInfo['author'], bibInfo['title'], bibInfo['year'], bibInfo['doi'])
return bibInfo
@@ -71,7 +71,7 @@ def getTaskIDFromResult(res):
return result
def negativeStatusMsg(res):
- return 'Problems\n\tStatus code => {0}\n\tReason=> {res.reason}'.format(res.status_code, res.reason)
+ return 'Problems\n\tStatus code => {0}\n\tReason=> {1}'.format(res.status_code, res.reason) # mypy: ignore
def filterResponseText(val):
return json.loads(''.join([str(char) for char in val if char in string.printable]))