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
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
Akuli
1cd719ba8d
Add types to some untyped tkinter.Canvas methods ( #5868 )
...
* coords
* gettags
* itemconfigure, itemconfig
* tag_raise, tag_lower, their aliases
* dtag
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2021-08-07 17:01:56 +03:00
Akuli
9301131976
fix tkinter.Canvas tags option ( #5866 )
2021-08-07 15:53:46 +02:00
Akuli
36799fd63c
tkinter.Canvas: fix dash ( #5867 )
2021-08-07 15:38:05 +02:00
Sebastian Rittau
711580722b
Enable pyright for all Python 3 stubs ( #5597 )
...
* pyright: disable reportUnknownParameterType
Unknown parameter types are preferred over Any annotations for
incomplete stubs. Especially larger stubs are expected to be
incomplete for some time and it would be a shame to lose the
other pyright warnings for those stubs.
* Also disable reportUnknownVariableType
Fix problems with tkinter
* Disable reportUnknownMemberType
Fix pyright problems
2021-06-09 07:14:22 -07:00
Akuli
200260e685
move DndSource to tkinter/dnd.pyi ( #5588 )
2021-06-07 07:07:57 -07:00
Akuli
ec80fdaeb5
add types to most common tkinter.Entry methods ( #5586 )
...
* most common tkinter.Entry methods
* type-ignore tkinter's lsp violation
2021-06-07 11:55:35 +03:00
Akuli
4b66a9cd4e
add types to tkinter invoke methods ( #5582 )
2021-06-06 20:32:30 +02:00
Akuli
68dbab81f4
More types for tkinter.Treeview ( #5584 )
2021-06-06 19:19:23 +02:00
Akuli
6159136006
finish types of tkinter.Menu ( #5583 )
2021-06-06 19:15:37 +02:00
Akuli
ecafd6fe47
add types to tkinter.filedialog.ask* ( #5579 )
2021-06-06 13:05:57 +02:00
Sebastian Rittau
f0bf6eebbd
AnyStr cleanup ( #5487 )
...
* Replace all uses of StrPath, BytesPath, and AnyPath in Python 2 stubs.
* Add StrOrBytesPath as preferred alias for AnyPath.
* Replace all remaining AnyPath instances with StrOrBytesPath.
* Mark AnyPath as obsolete.
Part of #5470
2021-05-17 20:45:48 +02:00
Vyom Pathak
b35ae73c5f
Changed: argument type for xPos and yPos in tkinter to accept numbers ( #5334 )
2021-05-04 15:17:34 +03:00
Akuli
30c83ab5e0
tkinter.font nametofont root arg py3.10 ( #5307 )
...
Fixes #5306
2021-05-02 17:52:09 +02:00