Commit Graph

100 Commits

Author SHA1 Message Date
Sebastian Rittau
53a8193d64 Update typing_extensions imports in stdlib (#11244)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2024-01-05 08:15:19 -08:00
Sebastian Rittau
23604858a6 Remove Python 3.7 branches (#11238) 2024-01-05 11:39:39 +01:00
Akuli
51ec2f0900 tkinter: Use a TypeVarTuple in .after() and .after_idle() methods (#11014) 2023-12-08 23:00:13 +00:00
tungol
fd7ff19577 Use StrEnum as base class, when available (#11100) 2023-12-05 13:27:10 +01:00
Alex Waygood
10febc4fe0 stdlib: remove unused type: ignore comments (#11061) 2023-11-23 14:00:07 +01:00
Alex Waygood
83964a4dc5 stdlib: add many missing __del__ methods (#11042) 2023-11-18 11:32:12 -08:00
Akuli
cad0c04ec0 tkinter: Require passing in a callback function to .after() (#11013) 2023-11-10 20:18:25 +02:00
Akuli
99563a2e6e Use @deprecated in tkinter.Variable tracing methods (#11011) 2023-11-10 19:38:20 +02:00
Jelle Zijlstra
3229b36644 stdlib: More pos-only parameters to Protocols (#10987) 2023-11-06 23:45:12 +01:00
Spencer Brown
3c872ca8fd Add types to some tkinter.Text methods. (#10946)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-10-31 18:44:39 +02:00
Aditya Paul
2ce9dcd5fb Allow str for tkinter.Scrollbar.set() (#10926) 2023-10-25 20:48:08 +03:00
Akuli
fbd7963fd6 Delete tkinter._ExceptionReportingCallback (#10689)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-12 20:16:47 +03:00
Bruno Cabral
4088b8425f tkinter: Treeview identifiers can be int (#10468) 2023-07-17 23:45:59 +03:00
Bruno Cabral
1d7f0d087b tkinter: accept Iterable[int] for grid_columnconfigure, grid_rowconfigure (#10455)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-07-13 23:38:47 +01:00
Bruno Cabral
eba3a4903d Accept ints for tkinter.ttk.Treeview columns (#10456)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2023-07-14 01:29:06 +03:00
Simão Afonso @ Powertools Tech
7646d38302 tkinter: Add missing "angle" argument to Canvas.create_text (#10404) 2023-07-04 22:00:48 +03:00
Akuli
f20cb4ed45 Accept int in tkinter.Canvas dash arguments (#10004) 2023-04-03 20:58:27 +02:00
Akuli
87c1b949cd Delete some unnecessary type aliases in tkinter (#9970) 2023-03-28 20:37:29 +03:00
Alex Waygood
dd2818a41d Stdlib: add container default values (#9909) 2023-03-21 09:12:34 +01:00
Alex Waygood
1d2ae2598b Fix some typos in comments (#9802) 2023-02-23 22:11:24 +00:00
Spencer Brown
f5b761d465 Add types for PIL.ImageTk (#9733) 2023-02-18 21:50:28 +02:00
Alex Waygood
0ef9c3f8e8 Enable flake8-pyi's Y037 (#9686) 2023-02-06 19:01:02 -08:00
Alex Waygood
1e3d762a12 stdlib: use bool for annotations where the default is False (#9672) 2023-02-04 11:58:18 +00:00
Alex Waygood
7cd7ae46c0 Improve a few version-dependent tkinter functions (#9637) 2023-02-01 15:02:26 +02:00
Alex Waygood
33a62ae42d Add more defaults to the stdlib (#9606)
Continuing work towards #8988.

The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are:

- Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
- Defaults in non-py311 branches
- Defaults for float parameters
- Defaults for overloads
2023-01-29 01:51:23 +00:00
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