Skip to content

Commit e2c0e3a

Browse files
melassapre-commit-ci[bot]Akuli
authored
tkinter: Accept list and tuple in grid sticky option (#15508)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Akuli <akuviljanen17@gmail.com>
1 parent 6b222ca commit e2c0e3a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/tkinter/__init__.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,9 @@ class Grid:
11531153
ipady: float | str = ...,
11541154
padx: float | str | tuple[float | str, float | str] = ...,
11551155
pady: float | str | tuple[float | str, float | str] = ...,
1156-
sticky: str = ..., # consists of letters 'n', 's', 'w', 'e', may contain repeats, may be empty
1156+
sticky: (
1157+
str | list[str] | tuple[str, ...]
1158+
) = ..., # consists of letters 'n', 's', 'w', 'e', may contain repeats, may be empty
11571159
in_: Misc = ...,
11581160
**kw: Any, # allow keyword argument named 'in', see #4836
11591161
) -> None: ...

0 commit comments

Comments
 (0)