Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tty] py312: Fix return types of set(raw|cbreak) #10785

Merged
merged 7 commits into from
Sep 28, 2023

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Sep 27, 2023

Also add termios._AttrReturn type alias to be used in tty

Also add `termios._AttrReturn` type alias to be used in tty
@srittau
Copy link
Collaborator Author

srittau commented Sep 27, 2023

Waiting for #10784 due to conflicts.

@srittau srittau requested a review from sobolevn September 27, 2023 09:00
stdlib/termios.pyi Outdated Show resolved Hide resolved
@github-actions

This comment has been minimized.

stdlib/tty.pyi Outdated Show resolved Hide resolved
@srittau srittau marked this pull request as ready for review September 27, 2023 09:29
@srittau
Copy link
Collaborator Author

srittau commented Sep 27, 2023

@sobolevn I've also replaced _Mode with termio._Attr as I believe these represent the same thing?

stdlib/tty.pyi Outdated Show resolved Hide resolved
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

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

@JelleZijlstra JelleZijlstra merged commit 6074a8f into python:main Sep 28, 2023
@JelleZijlstra
Copy link
Member

JelleZijlstra commented Sep 28, 2023

Submitted python/cpython#110028 to document some of these changes better

@srittau srittau deleted the tty-return branch September 28, 2023 14:52
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.

4 participants