Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PLC0206 ruff warning #114

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions df_translation_toolkit/create_mod/from_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def create_info(info_file: Path, destination_encoding: str, language: str) -> No


def get_dictionaries(translation_path: Path, language: str) -> Dictionaries:
po_files = {"objects": Path(), "text_set": Path()}
for po_file in po_files:
po_files: dict[str, Path] = {}
for po_file in ["objects", "text_set"]:
mtime = 0
for file in translation_path.glob(f"*{po_file}*{language}.po"):
if file.is_file() and file.stat().st_mtime > mtime:
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ ignore = [
"TD001",
"TD003",
"N818",
"PLC0206",
]
fixable = ["ALL"]
unfixable = ["F401"]
Expand Down
Loading