It relies on some features introduced in Python 3.12, specifically the `sys.monitoring` API.
However, the resulting type annotations should work for Python 3.9+.