gh-149985: Remove future annotations and if TYPE_CHECKING in pyrepl (#149992)

`from __future__ import annotations` is soft-deprecated now that evaluation
of annotations is always deferred. `if TYPE_CHECKING` can often be replaced
with lazy imports.
22 files changed