Files
yt-local/settings.py
Astounds 155bd4df49
All checks were successful
CI / test (push) Successful in 1m5s
fix(settings): add AST compatibility for Python 3.12+
- Use `ast.Constant` as primary node for Python 3.8+
- Maintain backward compatibility with `ast.Num`, `ast.Str`, and `ast.NameConstant`
- Prevent crashes on Python 3.12 where legacy nodes were removed
- Add safe handling via `try/except AttributeError`
2026-04-19 22:41:48 -05:00

18 KiB