diff options
author | Alexander_Kabui | 2023-12-29 16:18:50 +0300 |
---|---|---|
committer | Alexander_Kabui | 2023-12-29 16:18:50 +0300 |
commit | 20ec28980a0a003cac408f6d8efcf4ef1c9c1ec8 (patch) | |
tree | 69cb74d348042bc2a4b78d9a5a1d09c83135eeee /gn3 | |
parent | fb49b824bf7a90ecadf021c01c65880e78e74298 (diff) | |
download | genenetwork3-20ec28980a0a003cac408f6d8efcf4ef1c9c1ec8.tar.gz |
fix mypy issues
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/llms/client.py | 2 | ||||
-rw-r--r-- | gn3/llms/process.py | 4 |
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])) |