feat: casefold mod names before sorting

This commit is contained in:
aclist committed 2026-05-02 20:29:52 +09:00
1 parent 5757f79755
commit 8bcb64810d
5 files changed
+23 -17

No files matched your search

+3 -2
View File
@@ -1,16 +1,17 @@
import json
from pathlib import Path
from typing import Any
def read_json(path: Path) -> dict:
def read_json(path: Path) -> Any:
try:
with open(path, "r") as infile:
try:
data = json.load(infile)
return data
except json.decoder.JSONDecodeError as e:
raise e
except OSError as e:
raise e
return data
def write_json(data: dict, path: Path) -> None: