Quite an epic effort, but (I'm guessing, due to the age of it) none of the type system stuff is checkable via mypy etc
it seems like instead there's a bunch of runtime type-checking going on (or at least... "at import time", i.e. runtime but as early as possible)