Revert "Fix type errors after adding types to the `py` dependency"
This reverts commit 930a158a6a4d58ceb37aff97fa476215a68c915e.
Regression test from Bruno Oliveira.
(cherry picked from commit fb99b5c66ee06ad0bd3336d8599448d1d3da4f7f)
Co-Authored-By: Bruno Oliveira <bruno@esss.co>