Commit Graph

154 Commits

Author SHA1 Message Date
Jelle Zijlstra 94b1880444 Fix some incorrect parameter defaults in the stdlib (#14620) 2025-08-22 09:11:52 -07:00
Semyon Moroz 5e0d6ee95e [stdlib] Copy-edit deprecation messages (#14614)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2025-08-21 12:12:00 +01:00
Semyon Moroz 9bb8c4f1f9 [stdlib] Add missing Final (#14613) 2025-08-21 12:18:20 +02:00
Jelle Zijlstra 02a4b07b54 stdlib: add some parameter defaults (#14610) 2025-08-21 09:17:33 +02:00
Semyon Moroz fb0940e6c1 [stdlib] Deprecate old functions (#14553)
* [stdlib] Deprecate many functions

* Fix typo

* Imporove message for asyncio/trsock

* Apply suggestions from code review

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

* Add Python before version

* [pre-commit.ci] auto fixes from pre-commit.com hooks

* Wrap comment lines

* fix the rest

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-10 22:27:35 +01:00
Brian Schubert 622df68c1c Add @type_check_only to stub-only private classes in stdlib (#14512) 2025-08-03 10:13:16 +02:00
Roman A 3f727b0cd6 Add type annotations for **options in tkinter.messagebox functions (#14341)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2025-07-01 01:13:40 +03:00
Marcell Perger 47cfbeeb76 Fix incomplete tkinter.commondialog stub (#14340)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2025-06-27 00:42:01 +03:00
Marcell Perger 97d0c89618 Improve some of the incomplete types in tkinter.filedialog (#14311) 2025-06-23 09:32:29 +03:00
Max Muoto 8f5a80e7b7 Update tkinter for 3.14 (#14240) 2025-06-07 20:27:13 -07:00
Akuli 67deb0d8a1 Add return type to _tkinter.TkappType.interpaddr() (#14101) 2025-05-19 22:50:25 +02:00
Sebastian Rittau 0125fe2848 Replace Incomplete | None = None in stdlib (#14083) 2025-05-16 15:43:52 +02:00
Akuli 9589e369f8 Make tkinter.Event equivalent to tkinter.Event[tkinter.Misc] (#14053) 2025-05-13 22:50:13 +02:00
Marc Mueller 82af3b25ba Add additional type ignores for mypy (#14050) 2025-05-13 16:50:32 +02:00
Anton Pilipenko d28270b19d Fix tkinter.PhotoImage.put arguments (#13971)
* allow bytes

* put to x1 y1 ?x2 y2?

---------

Co-authored-by: Anton Pilipenko <anton.pilipenko@retechlabs.com>
2025-05-10 22:27:07 +03:00
Semyon Moroz 746dbbcc2b Complete ttkthemes (#13858) 2025-04-25 11:26:21 +03:00
Sebastian Rittau 30b16c168d Drop Python 3.8 branches (#13776) 2025-04-03 10:35:36 +02:00
Avasam aaf1e0313c Enable Ruff flake8-pie (PIE) (#13747) 2025-04-02 08:43:25 +02:00
/ˈɛvən/ aac4394eb2 tkinter: allow index to be "end" in Treeview.move (#13454) 2025-02-03 14:43:28 +02:00
Konstantin Baikov 4ce9f24f39 Add some defaults to tkinter.filedialog (#13345)
Partially fixes: https://github.com/python/typeshed/issues/11482

Source of fixes based on the @akuli comment: https://github.com/python/typeshed/issues/11482#issuecomment-1981710718
2025-01-01 22:00:22 +02:00
Max Muoto 92231a5728 Update tkinter.Misc for 3.13 (#12367) 2024-12-27 20:59:32 -08:00
Stephen Morton 3944c7839e Add __hash__ for a bunch of types that set it to None (#13286) 2024-12-23 23:16:22 -08:00
Brian Schubert 3157273331 Allow any number of trailing font options in tkinter font description (#13240) 2024-12-19 01:39:57 +02:00
Stephen Morton ebe2558c2c add tkinter differences for 3.13 (#13156)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2024-12-04 22:39:49 +02:00
Stephen Morton 2ccc53bb67 Add a couple missing tkinter things (#13149) 2024-11-29 03:04:31 +02:00
Konstantin Baikov b815bfaf3c Fix tkinter ImageSpec #11721 (#13049) 2024-11-25 20:45:58 +02:00
Stephen Morton 0521fce9f9 Avoid using _typeshed.StrEnum (#13062) 2024-11-25 18:35:32 +01:00
Stephen Morton 32f48a5eae add several NamedTuple base classes (#12987) 2024-11-21 10:52:31 +01:00
Oleh Prypin b2f68ec2fe Use MaybeNone (alias to Any) when applicable (#12855) 2024-10-18 14:07:52 -07:00
Akuli 13a74a5211 Update tkinter.Text.count() for Python 3.13 (Akuli's version) (#12629) 2024-09-24 23:08:11 -07:00
Avasam 937270df0c Forbid extremely long line lengths in non-autogenerated stubs (#12537)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-08-18 16:03:34 -04:00
Max Muoto 82da1e19a7 Use Final in tkinter (#12545) 2024-08-17 22:34:16 +02:00
Akuli c04a752e24 Create overloads for tkinter.Text.count (#12395) 2024-08-11 00:08:24 +03:00
Gilbert Bishop-White 67db06b3a1 tkinter: add suggested Listbox selectmodes (#12499) 2024-08-09 23:40:44 +03:00
sobolevn 6f248dfa37 Bump mypy to 1.11.1 (#12463) 2024-08-04 23:19:28 -07:00
Max Muoto 0df6028dc8 Use Final for Constant Literals in the stdlib (#12332)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-07-15 18:07:34 +01:00
Max Muoto f863db6bc5 Update tkinter.PhotoImage (#12342)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2024-07-15 00:42:27 +03:00
Eric Traut 17f1c4628a Add precise values for enum members where possible (#11299)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
2024-04-22 15:10:59 +01:00
Sebastian Rittau 027115e624 Remove bare incompletes (#11670) 2024-03-30 18:35:57 -07:00
Shantanu 470a13ab09 Use PEP 570 syntax in stdlib (#11250) 2024-03-09 14:50:16 -08:00
Akuli 0ad004a776 tkinter: Simplify wm_iconphoto() (#11508) 2024-02-29 13:45:45 +02:00
Nikita Sobolev 7b4c751abb Fix pos-only params in tkinter module (#11506) 2024-02-29 09:02:02 +00:00
Akuli d5ff34e049 Add types to tkinter.Canvas.scale() (#11369) 2024-02-16 21:10:14 -08:00
Akuli 41245698e0 Delete a few simple type aliases in tkinter (#11415) 2024-02-13 11:37:32 +01:00
Akuli b44d22e81d Use bool | Literal[0, 1] instead of int in some tkinter bool parameters (#11412)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-13 02:06:00 +02:00
Marcell Perger 4585c714d9 Add annotations and defaults for tkinter.ttk.OptionMenu (#11404)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2024-02-12 21:33:42 +02:00
Marcell Perger 13aed8a1c2 Add defaults for tkinter.ttk __init__ methods (#11405)
NOTE: I've ignored things marked as undocumented or where the type of the default didn't match the annotation.
2024-02-12 12:54:12 +02:00
Marcell Perger 49d5827141 Add annotations for tkinter.ttk.LabeledScale (#11402) 2024-02-11 20:05:27 +02:00
Marcell Perger 5eb040b1e6 Fix tkinter.ttk's compound argument (#11393)
Allow the empty string (`""`).
2024-02-10 20:55:08 +02:00
Marcell Perger 187928d8ce Add defaults for tkinter __init__ methods (#11391)
Add defaults for `tkinter`'s `__init__` methods, see #10947 

Some notes about specific arguments:
- `variable` and `textvariable`: The default value (using `dict`) is consistently `""` but this doesn't match the annotated `Variable` type so I didn't fill these in
- `Message(padx, pady)`: The default value is `-1` which is not allowed according to the documentation so I didn't fill this in
- `Toplevel(use)`: The default value is always `""` but this doesn't match the annotated `int` type so I didn't fill this in
2024-02-10 20:51:27 +02:00