Update tty.py: Partially added type hints and changed wildcard import to only needed parts by USLTD · Pull Request #30581 · python/cpython
Hi, and welcome to CPython!
It's not really clear to me what this PR addresses, I'm afraid — you haven't really stated what problems there are with the existing module that your PR is trying to solve. Please also note that type hints are very rarely added to the standard library — if you want to help work on type hints, I'd recommend heading over to https://github.com/python/typeshed, where PRs are very welcome 😀
I'm afraid there are some other issues with this PR, too. For the CPython repo, almost every PR (unless it's doing something extremely trivial, like fixing a documentation typo) should be linked to an issue ticket on bugs.python.org. Lastly, and most importantly, you're unfortunately attempting to merge this PR into the 3.10 branch. For CPython, almost all changes are first made to the main branch (which currently represents the as-yet-unreleased Python 3.11), and then backported to maintenance branches if necessary. In order to have your ideas considered, you would have to close this PR and file a new one against the main branch.