aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2023-12-29 16:18:50 +0300
committerAlexander_Kabui2023-12-29 16:18:50 +0300
commit20ec28980a0a003cac408f6d8efcf4ef1c9c1ec8 (patch)
tree69cb74d348042bc2a4b78d9a5a1d09c83135eeee
parentfb49b824bf7a90ecadf021c01c65880e78e74298 (diff)
downloadgenenetwork3-20ec28980a0a003cac408f6d8efcf4ef1c9c1ec8.tar.gz
fix mypy issues
-rw-r--r--gn3/llms/client.py2
-rw-r--r--gn3/llms/process.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/gn3/llms/client.py b/gn3/llms/client.py
index 41aa6b4..f205247 100644
--- a/gn3/llms/client.py
+++ b/gn3/llms/client.py
@@ -85,7 +85,7 @@ class GeneNetworkQAClient(Session):
bib_info = bib_info.removesuffix('.txt')
elif isinstance(bib_info, dict):
# Format string bibliography information
- bib_info = "{0}. ".format(bib_info.get('author', ''),
+ bib_info = "{0}.{1}.{2}.{3} ".format(bib_info.get('author', ''),
bib_info.get('title', ''),
bib_info.get('year', ''),
bib_info.get('doi', ''))
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]))