Skip to content

tkinter: bind() method type-hint incorrectly has 'add' argument as a bool #6332

@JohnVillalovos

Description

@JohnVillalovos

The documentation for the bind() method https://docs.python.org/3/library/tkinter.html#bindings-and-events shows that the add parameter is a string.

The work from #4347 made add be type-hinted as a bool.

So type-checking fails if doing: add="" or add="+" which is the documented way to use add in the bind() method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions