FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update `tty` to python 3.12 by sobolevn · Pull Request #10784 · python/typeshed · GitHub

Update tty to python 3.12 - #10784

Merged
srittau merged 3 commits into
mainfrom
py312-tty
Sep 27, 2023
Merged

Update tty to python 3.12#10784
srittau merged 3 commits into
mainfrom
py312-tty

Conversation

Copy link
Copy Markdown
Member

This comment has been minimized.

srittau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM, but one optional nit.

Comment thread stdlib/tty.pyi Outdated
def setcbreak(fd: _FD, when: int = 2) -> None: ...

if sys.version_info >= (3, 12):
__all__ += ["cfmakeraw", "cfmakecbreak"]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

srittau merged commit 4dad531 into main Sep 27, 2023
srittau deleted the py312-tty branch September 27, 2023 09:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL