This test was broken due to unused imports being automatically removed in abecc97bad.
abecc97bad
This patch adds static typing, and it switches to the Hatch package manager and its Hatchling build backend.