fix ruff cases UP024,UP041 (#11391)

* fix ruff cases UP024,UP041

* add changelog frag
This commit is contained in:
Alexei Znamensky
2026-01-07 05:29:44 +13:00
committed by GitHub
parent d4089ca29a
commit b67c94fc3f
5 changed files with 10 additions and 11 deletions

View File

@@ -21,8 +21,6 @@ ignore = [
"B905", # zip-without-explicit-strict - needs Python 3.10+
"UP045", # Use `X | None` for type annotations - needs Python 3.10+
# To fix:
"UP024", # Replace aliased errors with `OSError`
"UP041", # Replace aliased errors with `TimeoutError`
"B026", # star-arg-unpacking-after-keyword-arg
"SIM102", # collapsible-if
"SIM114", # if-with-same-arms