Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Return types in tkinter.filedialog #16637

Open

Description

@Akuli

If I cancel or close the dialog without selecting anything, I get:

>>> import tkinter.filedialog
>>> tkinter.filedialog.askdirectory()
()
>>> 

The stub says that the return type is str. We should probably use str | tuple[()] to also allow empty tuples. The actual type may also depend on the Tcl/Tk version.

I haven't tried other tkinter.filedialog functions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions