feat: modernize Python codebase to 3.13+ minimum

- Set minimum Python version to 3.13, remove Python 2 compatibility
- Remove legacy imports: future, six, builtins, __future__, configparser,
  importlib-metadata, pep8, mock, unittest-parametrize
- Add modern type hints throughout (PEP 604 union syntax, PEP 585 generics)
- Replace .format() with f-strings, use super() without args
- Replace pytz with datetime.timezone, distutils.strtobool with inline impl
- Use conditional import for cec hardware dependency
- Clean up uv.lock (6 packages removed)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Viktor Petersson
2026-03-10 05:46:51 +00:00
parent d89ee67b1e
commit bf767e89dc
28 changed files with 201 additions and 692 deletions

View File

@@ -1 +1 @@
3.11
3.13