mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Accept ints for tkinter.ttk.Treeview columns (#10456)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
@@ -961,7 +961,7 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
|
||||
master: tkinter.Misc | None = None,
|
||||
*,
|
||||
class_: str = ...,
|
||||
columns: str | list[str] | tuple[str, ...] = ...,
|
||||
columns: str | list[str] | list[int] | list[str | int] | tuple[str | int, ...] = ...,
|
||||
cursor: tkinter._Cursor = ...,
|
||||
displaycolumns: str | list[str] | tuple[str, ...] | list[int] | tuple[int, ...] = ...,
|
||||
height: int = ...,
|
||||
@@ -983,7 +983,7 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
|
||||
self,
|
||||
cnf: dict[str, Any] | None = None,
|
||||
*,
|
||||
columns: str | list[str] | tuple[str, ...] = ...,
|
||||
columns: str | list[str] | list[int] | list[str | int] | tuple[str | int, ...] = ...,
|
||||
cursor: tkinter._Cursor = ...,
|
||||
displaycolumns: str | list[str] | tuple[str, ...] | list[int] | tuple[int, ...] = ...,
|
||||
height: int = ...,
|
||||
|
||||
Reference in New Issue
Block a user