Skip to content

[tkinter] Fill in remaining tkinter.filedialog defaults - #16614

Merged
Akuli merged 1 commit into
python:mainfrom
Bortlesboat:tkinter-filedialog-defaults
Oct 28, 2026
Merged

Akuli merged 1 commit into
python:mainfrom
Bortlesboat:tkinter-filedialog-defaults

Conversation

@Bortlesboat

Copy link
Copy Markdown
Contributor

Closes #11482

Passing None for these options is the same as omitting them (Misc._options drops None values), so they now default to None; filetypes=None raises TypeError in _Dialog._fixoptions, so it drops | None and defaults to (), which Tk treats as no filter.

Upstream: filedialog.py, commondialog.py

Agent: Claude Code (Claude Opus 5.5)

@github-actions

Copy link
Copy Markdown
Contributor

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

@srittau

srittau commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

@Akuli: Maybe you would like to take a look?

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

Thanks!

@Akuli
Akuli merged commit cb2bd9e into python:main Oct 28, 2026
88 checks passed
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.

The tkinter.filedialog module has no default values for arguments

3 participants