Enable first batch of Ruff RET rules (#114480)

* Enable first batch of Ruff RET rules

* disable pylint rules
This commit is contained in:
Sid
2024-03-31 11:30:59 +02:00
committed by GitHub
parent 6e3e09f2c3
commit d846676e84
10 changed files with 35 additions and 42 deletions

View File

@@ -43,7 +43,7 @@ def flatten_translations(translations):
if isinstance(v, dict):
stack.append(iter(v.items()))
break
elif isinstance(v, str):
if isinstance(v, str):
common_key = "::".join(key_stack)
flattened_translations[common_key] = v
key_stack.pop()