diff options
author | Yoda <64033043+yowoda@users.noreply.github.com> | 2024-09-01 11:47:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-01 11:47:07 (GMT) |
commit | 42a818912bdb367c4ec2b7d58c18db35f55ebe3b (patch) | |
tree | 31e2f30b84347d5aeedcc4d06552b51fa4f8d140 /Lib/tkinter | |
parent | 64af2b29d2fcc4c4a305f970b6e81e7e79643b33 (diff) | |
download | cpython-42a818912bdb367c4ec2b7d58c18db35f55ebe3b.zip cpython-42a818912bdb367c4ec2b7d58c18db35f55ebe3b.tar.gz cpython-42a818912bdb367c4ec2b7d58c18db35f55ebe3b.tar.bz2 |
gh-123341: Support `tkinter.Event` type subcript (#123353)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Diffstat (limited to 'Lib/tkinter')
-rw-r--r-- | Lib/tkinter/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/tkinter/__init__.py b/Lib/tkinter/__init__.py index 2e5affb..dd7b3e1 100644 --- a/Lib/tkinter/__init__.py +++ b/Lib/tkinter/__init__.py @@ -295,6 +295,8 @@ class Event: ''.join(' %s=%s' % (k, attrs[k]) for k in keys if k in attrs) ) + __class_getitem__ = classmethod(types.GenericAlias) + _support_default_root = True _default_root = None |