Skip to content

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

Open
Bortlesboat wants to merge 1 commit into
python:mainfrom
Bortlesboat:tkinter-filedialog-defaults
Open

Bortlesboat wants to merge 1 commit into
python:mainfrom
Bortlesboat:tkinter-filedialog-defaults

Conversation

@Bortlesboat

Copy link
Copy Markdown

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. 🤖🎉

This branch has not been deployed

No deployments
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

1 participant