| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
LGTM, but one optional nit.
Sorry, something went wrong.
| def setcbreak(fd: _FD, when: int = 2) -> None: ... | ||
|
|
||
| if sys.version_info >= (3, 12): | ||
| __all__ += ["cfmakeraw", "cfmakecbreak"] |
There was a problem hiding this comment.
Nit: My quick random sampling shows me that we usually move these __all__ += constructs to the top of the file, even if it means a duplicated version/platform check. Personally, I find this better too, since you can easier spot the contents of __all__ for all branches.
Sorry, something went wrong.
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Source: https://github.com/python/cpython/blob/3.12/Lib/tty.py