It might not be so small, if you import a module just to declare a type, that's an import that happens at runtime, that might not be needed.
The correct way would be to do conditional imports that are only performed while typechecking in this case. But I'd expect the issue to happen often.