Skip to content

Commit

Permalink
Fix ruff linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
balazs-endresz committed Sep 27, 2024
1 parent f2b93ef commit 635745d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# serve to show the default.

import os
import shlex
import sys


Expand Down
2 changes: 1 addition & 1 deletion rosetta/translate_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def translate(text, from_language, to_language):
if DEEPL_AUTH_KEY:
deepl_language_code = None
DEEPL_LANGUAGES = getattr(settings, "DEEPL_LANGUAGES", None)
if type(DEEPL_LANGUAGES) is dict:
if isinstance(DEEPL_LANGUAGES, dict):
deepl_language_code = DEEPL_LANGUAGES.get(to_language, None)

if deepl_language_code is None:
Expand Down

0 comments on commit 635745d

Please sign in to comment.