Commit Graph

75 Commits

Author SHA1 Message Date
Nikita Sobolev
7ed599e848 Remove parts of tkinter from pyright exclude (#8958) 2022-10-21 19:18:04 +03:00
Alex Waygood
601700d1a5 Improve some tkinter unions (#8655) 2022-08-31 13:05:51 +03:00
Akuli
5ea1b1e6de Add types to tkinter.colorchooser.askcolor (#8588) 2022-08-22 18:15:37 +02:00
Alex Waygood
892796a794 Remove, move or # noqa more TypeAlias declarations (#8450) 2022-08-05 13:03:19 +01:00
Akuli
57179d4080 tkinter: get rid of unnecessary Incomplete (#8471) 2022-08-02 15:03:24 -07:00
Akuli
5e5f3b4ecc Use typeshed.Incomplete and object instead of Any in tkinter stubs (#8458)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-02 22:10:25 +03:00
Alex Waygood
edc0ecd857 Remove Python 3.6 branches from typeshed (#8269) 2022-07-11 10:55:17 +02:00
Spencer Brown
29c17ffb47 Improve tkinter.simpledialog (#8243) 2022-07-10 19:52:16 +03:00
Alex Waygood
b5802d0bbe Add tkinter._test (#8062)
Fixes #7903
2022-06-12 16:58:39 +03:00
Lee
8f77471d62 tkinter: remove unnecessary _MenuIndex TypeAlias (#8023) 2022-06-08 09:23:54 +01:00
Alex Waygood
591593c85f Simplify __all__ for modules beginning with 'm' to 't' (#8028) 2022-06-07 20:14:15 +01:00
Lee
87893f3512 tkinter: annotate Listbox. (#8006)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-06-03 18:08:03 +03:00
Akuli
58f2e317c1 tkinter: add _windowingsystem() (#7803) 2022-05-06 23:45:47 -07:00
Jelle Zijlstra
2fc719d3cf tkinter: add info_patchlevel for 3.11 (#7794) 2022-05-07 09:25:55 +03:00
Akuli
7d046654f1 Accept lists of tuples in tkinter.Canvas.create_foo() methods (#7722)
Fixes #7698.

At runtime, these methods call `tkinter._flatten()`, which recursively turns lists or tuples (but not other sequences) into a flat tuple of items. Unfortunately we don't have recursive types yet.
2022-04-30 06:52:56 -06:00
Alex Waygood
97a74bc1aa Import from collections.abc wherever possible (#7635) 2022-04-18 12:50:37 +02:00
Alex Waygood
740193a8fc Use TypeAlias where possible for type aliases (#7630) 2022-04-15 18:01:00 -07:00
Alex Waygood
1ceb486b75 Replace Union with union operator (#7596) 2022-04-05 23:07:31 +02:00
Alex Waygood
1acc8f3bd6 Use PEP 604 syntax wherever possible, part II (#7514)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-03-19 14:27:35 +00:00
Alex Waygood
3ab250eec8 Use PEP 604 syntax wherever possible (#7493) 2022-03-16 16:01:33 +01:00
Alex Waygood
6a743348ca Add __all__ for most modules beginning with 't' (#7373) 2022-02-23 18:25:28 -08:00
Spencer Brown
5c309e5fe4 Add missing tagOrId parameter to tkinter.Canvas.coords() (#6920) (#7246) 2022-02-17 11:45:31 +02:00
Alex Waygood
fbc279e3f5 stdlib: Add many missing dunder overrides (#7231) 2022-02-16 06:25:47 -08:00
Mateusz Nowak
409beea616 tkinter.simpledialog.ask* functions can return None (#7219) 2022-02-16 12:48:04 +02:00
Gabe R
7e053ac5bd Add some missing type hints to tkinter (#6359)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-02-02 10:29:11 +02:00
Shantanu
b88a6f19cd Upgrade black version (#7089) 2022-01-30 16:27:06 -08:00
Akuli
dff461fc6a improve tkinter.Treeview.heading and tkinter.Treeview.item (#6999) 2022-01-23 14:53:30 +01:00
Alex Waygood
76af72831a Use the Literal["foo", "bar"] syntax consistently (#6984) 2022-01-20 20:16:04 +02:00
Jelle Zijlstra
0949e9e90d remove quoted strings (#6933) 2022-01-16 14:29:13 -08:00
Akuli
b77f994801 Improve _tkinter (#6908) 2022-01-13 17:05:20 +02:00
Alex Waygood
a40d79a4e6 Use lowercase type everywhere (#6853) 2022-01-08 16:09:29 +01:00
Alex Waygood
8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Akuli
48f13e451a shorten tkinter's comments (#6675) 2021-12-23 14:07:19 +02:00
Akuli
44f71867c7 add tkinter.EventType aliases (#6516) 2021-12-07 15:10:39 +02:00
Akuli
af85e18bec tkinter Pack,Grid,Place: delete commented-out aliases and explain in allowlist (#6518) 2021-12-06 09:09:06 -08:00
Akuli
a5bc1e037f Add mypy error codes to '# type: ignore' comments (#6379) 2021-11-26 07:07:56 +01:00
Alex Waygood
9707cb00f6 Python 3.11 removals in stdlib (#6374)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-25 19:34:12 +02:00
Nikita Sobolev
3db6ac2d7b Now add= in tkinter.pyi can be '' or '+' (#6334) 2021-11-18 21:13:10 +02:00
luzpaz
b95b729b9e Fix typos (#6263)
Found via `codespell -q 3 -L alo,asend,ba,nams,spawnve`
2021-11-08 18:23:15 -08:00
Akuli
53087be4eb get rid of tkinter._TkinterSequence type alias (#6181) 2021-10-18 10:22:01 +02:00
Akuli
5b03ad18cc tkinter.ttk.Treeview: more Literal[""] (#6182) 2021-10-16 18:41:52 +02:00
Akuli
994b69ef8f Use lowercase tuple where possible (#6170) 2021-10-14 17:18:19 -07:00
EXPLOSION
ca983cd319 Allow empty strings for show in tkinter.ttk.Treeview (#6135) 2021-10-09 11:17:02 +03:00
Nikita Sobolev
373c4e582a traceback can be None in sys.excepthook (#6133) 2021-10-08 09:17:32 +00:00
Screwtapello
4c6e98ed0c Add many missing tkinter type annotations (#6002)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-09-12 11:42:12 +03:00
Akuli
e69ca588ac Stubs for ttkthemes (#6024) 2021-09-10 15:59:12 +02:00
Oleg Höfling
64f481189f drop ellipsis assignments from module vars, classvars and instance attrs (#5914)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-08-11 19:26:58 +02:00
Akuli
ce11072dbe Big diff: use lower-case list and dict (#5888) 2021-08-08 09:26:35 -07:00
Akuli
b1d1551bbc tkinter.Canvas: types for addtag_foo() and find_foo() methods (#5886) 2021-08-08 17:14:45 +03:00
Akuli
ebacd320a3 support passing coordinate tuples to tkinter.Canvas.create_foobar() (#5885) 2021-08-08 15:43:28 +02:00