cpython
cpython copied to clipboard
Update type checking conditions in new repl module
The current _pyrepl module type checks use if False, often with a # types comment above them, for condition imports that are only for type checking. It'd be a little more readable and not require a comment to simply use the TYPE_CHECKING constant from the typing module.