[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-04-23 16:11:33 +00:00
commit a3c234ec3d

View file

@ -197,7 +197,7 @@ def open_file(file_path: Path, in_browser: bool = False) -> None:
if current_os == "Windows":
# The method os.startfile is only available in Windows,
# ignoring type error caused by this.
os.startfile(file_path if not in_browser else file_path.parent) #type: ignore(attr-defined)
os.startfile(file_path if not in_browser else file_path.parent) # type: ignore(attr-defined)
else:
if current_os == "Linux":
commands = ["xdg-open"]