[tkinter.ttk] Added type annotations for Style, fix some other incomplete parts (#14348)

This commit is contained in:
Marcell Perger
2025-08-27 07:02:44 +03:00
committed by GitHub
parent 4fa56fbc23
commit c7b28cafb0
6 changed files with 165 additions and 15 deletions
@@ -25,6 +25,9 @@ posixpath.join
ntpath.join
os.path.join
# this is implemented with *args having a minimum size so arguments before it must be positional (but stubtest doesn't see that)
tkinter.ttk.Style.element_create
# typing.IO uses positional-or-keyword arguments, but in the stubs we prefer
# to mark these as positional-only for compatibility with existing sub-classes.
typing(_extensions)?\.BinaryIO\.write
@@ -45,6 +45,9 @@ posixpath.join
ntpath.join
os.path.join
# this is implemented with *args having a minimum size so arguments before it must be positional (but stubtest doesn't see that)
tkinter.ttk.Style.element_create
# typing.IO uses positional-or-keyword arguments, but in the stubs we prefer
# to mark these as positional-only for compatibility with existing sub-classes.
typing(_extensions)?\.BinaryIO\.write
@@ -62,6 +62,9 @@ posixpath.join
ntpath.join
os.path.join
# this is implemented with *args having a minimum size so arguments before it must be positional (but stubtest doesn't see that)
tkinter.ttk.Style.element_create
# typing.IO uses positional-or-keyword arguments, but in the stubs we prefer
# to mark these as positional-only for compatibility with existing sub-classes.
typing(_extensions)?\.BinaryIO\.write
@@ -62,6 +62,9 @@ posixpath.join
ntpath.join
os.path.join
# this is implemented with *args having a minimum size so arguments before it must be positional (but stubtest doesn't see that)
tkinter.ttk.Style.element_create
# typing.IO uses positional-or-keyword arguments, but in the stubs we prefer
# to mark these as positional-only for compatibility with existing sub-classes.
typing(_extensions)?\.BinaryIO\.write
@@ -84,6 +84,9 @@ posixpath.join
ntpath.join
os.path.join
# this is implemented with *args having a minimum size so arguments before it must be positional (but stubtest doesn't see that)
tkinter.ttk.Style.element_create
# typing.IO uses positional-or-keyword arguments, but in the stubs we prefer
# to mark these as positional-only for compatibility with existing sub-classes.
typing(_extensions)?\.BinaryIO\.write