abstract interpretation of the bytecode like y'all were doing is the only way to robustly do type inference in python.
> https://github.com/google/pycnite
there's also https://github.com/MatthieuDartiailh/bytecode which is a good collection
https://mopsa.lip6.fr/#features
It also has more abstraction domains than „just“ the type of objects.
https://mopsa.lip6.fr/#features
It also has more abstraction domains than „just“ the type of objects.