chore: cleanup ruff flake8-simplify linter rules (#8286)
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
0bb7569d46
commit
0f14873255
34 changed files with 108 additions and 136 deletions
|
|
@ -27,7 +27,7 @@ class WikipediaAPIWrapper:
|
|||
self.doc_content_chars_max = doc_content_chars_max
|
||||
|
||||
def run(self, query: str, lang: str = "") -> str:
|
||||
if lang in wikipedia.languages().keys():
|
||||
if lang in wikipedia.languages():
|
||||
self.lang = lang
|
||||
|
||||
wikipedia.set_lang(self.lang)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue