Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add types to tkinter.colorchooser.askcolor#8588

Merged
srittau merged 4 commits into
python:masterpython/typeshed:masterfrom
Akuli:tkinter-ccAkuli/typeshed:tkinter-ccCopy head branch name to clipboard
Aug 22, 2022
Merged

Add types to tkinter.colorchooser.askcolor#8588
srittau merged 4 commits into
python:masterpython/typeshed:masterfrom
Akuli:tkinter-ccAkuli/typeshed:tkinter-ccCopy head branch name to clipboard

Conversation

@Akuli

@Akuli Akuli commented Aug 21, 2022

Copy link
Copy Markdown
Collaborator

It calls tk_chooseColor, because Chooser sets command to "tk_chooserColor" and Dialog calls whatever command is set to. Manual page of tk_chooseColor is here.

@github-actions

This comment has been minimized.

@TeamSpen210

Copy link
Copy Markdown
Contributor

Something else with askcolor: As of 3.9, the return value is actually tuple[int, int, int].

@Akuli

Akuli commented Aug 21, 2022

Copy link
Copy Markdown
Collaborator Author

Thanks for pointing that out! I have updated the return type.

@github-actions

Copy link
Copy Markdown
Contributor

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

@srittau 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.

I didn't double check (because tkinter), but that looks reasonable.

@srittau srittau merged commit 5ea1b1e into python:master Aug 22, 2022
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.