Commit Graph

42 Commits

Author SHA1 Message Date
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
Sebastian Rittau
4ac3ccad45 black: enable skip_magic_trailing_comma (#5252)
* black: enable skip_magic_trailing_comma

* Remove spurious commas
2021-04-27 08:32:32 -07:00
Vyom Pathak
c3e1875c25 Changed: text argument type to support float and int values for Tkinter
* Changed: text argument type to support float and int values for Tkinter
2021-04-24 17:33:45 +03:00
Daniel Rosenwasser
863b8f2e98 More complete type stubs for tkinter Canvas methods. (#5188)
* More complete type stubs for tkinter Canvas methods.

* Screen units.

* Switch to type alias.
2021-04-22 10:15:35 +03:00
Akuli
e98f398abc allow bytes in tkinter.PhotoImage (#5171) 2021-04-01 12:54:49 +02:00
Tigran Kostandyan
1ed1e00046 fix name attribute for Toplevel class (#5146) 2021-03-29 18:40:16 +02:00
Akuli
4de7b82e31 fix tkinter.ttk.Treeview.selection return type (#5024) 2021-02-15 08:00:31 -08:00
Akuli
367700e03d relax tkinter.font._FontDescription (#5026) 2021-02-15 07:59:53 -08:00
Akuli
003694ddd3 relax tkinter bind callback return types (#5025)
Fixes #5010
2021-02-15 07:54:13 -08:00
Akuli
903f74a68e tkinter.Tk.eval self fix (#5023)
Fixes #5019
2021-02-15 07:52:06 -08:00
Akuli
310c4d3b34 Add return type for tkinter.Text.mark_previous (#4986) 2021-01-29 00:02:15 -08:00
Ivan Levkivskyi
16ae4c6120 Re-organize directory structure (#4971)
See discussion in #2491

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
2021-01-27 12:00:39 +00:00