fix(core): replace deprecated ast.Num visitor in FPS parser

ast.Num/node.n deprecated since Python 3.8; NodeVisitor falls back to visit_Num with a DeprecationWarning per dispatch. Under -W error this surfaced as a misleading fps ValueError in Video.init. Replace with visit_Constant, reject non-numeric constants, and pin parse results for int/fraction/float inputs in a regression test.
This commit is contained in:
imSp4rky
2026-06-05 15:21:39 -06:00
parent 23cc8c9ec9
commit c03ff01c32
3 changed files with 33 additions and 2 deletions

0
tests/core/__init__.py Normal file
View File