Skip to content

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

Merged
JelleZijlstra merged 7 commits into
python:mainfrom
srittau:tty-return
Sep 28, 2023
Merged

[tty] py312: Fix return types of set(raw|cbreak)#10785
JelleZijlstra merged 7 commits into
python:mainfrom
srittau:tty-return

Conversation

@srittau

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
CollaboratorAuthor

Waiting for #10784 due to conflicts.

Comment threadstdlib/termios.pyi Outdated
@github-actions

This comment has been minimized.

Comment threadstdlib/tty.pyi Outdated
@srittau
srittau marked this pull request as ready for review September 27, 2023 09:29
@srittau

Copy link
Copy Markdown
CollaboratorAuthor

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

Comment threadstdlib/tty.pyi Outdated
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

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

@JelleZijlstra
JelleZijlstra merged commit 6074a8f into python:mainSep 28, 2023
@JelleZijlstra

JelleZijlstra commented Sep 28, 2023

Copy link
Copy Markdown
Member

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 freeto 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

@srittau@JelleZijlstra@sobolevn@AlexWaygood