Address UP014: use NamedTuple class syntax (#11168)

* Address UP014: use NamedTuple class syntax.

* Convert type comments to type hints.
This commit is contained in:
Felix Fontein
2025-11-21 18:19:36 +01:00
committed by GitHub
parent d98df2d3a5
commit e57de70c2a
3 changed files with 23 additions and 19 deletions

View File

@@ -21,7 +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:
"UP014", # Convert `xxx` from `NamedTuple` functional to class syntax
"UP024", # Replace aliased errors with `OSError`
"UP030", # Use implicit references for positional format fields
"UP031", # Use format specifiers instead of percent format