[New-bugs-announce] [issue41817] Incorrect types in tkinter.EventType Enum

Ethan Furman report at bugs.python.org
Sat Sep 19 15:36:58 EDT 2020


New submission from Ethan Furman <ethan at stoneleaf.us>:

Several of the EventType members, such as Key, are actually tuples instead of strings.  I suspect the comma was accidentally left in place when EventType was created from a different data structure.

Switching the Enum type to the new StrEnum fixes the problem.  (It will be merged in in the next couple days.)

----------
components: Library (Lib)
messages: 377188
nosy: ethan.furman, gpolo, serhiy.storchaka, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Incorrect types in tkinter.EventType Enum
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41817>
_______________________________________


More information about the New-bugs-announce mailing list