Bug description:
The pyrepl code uses from __future__ import annotations and if TYPE_CHECKING unnecessarily. The former is mostly redundant on 3.14+, the latter can usually be replaced with lazy imports on 3.15+. Let's set a good example.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
Bug description:
The pyrepl code uses
from __future__ import annotationsandif TYPE_CHECKINGunnecessarily. The former is mostly redundant on 3.14+, the latter can usually be replaced with lazy imports on 3.15+. Let's set a good example.CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs