Commit Graph
78 Commits
Author SHA1 Message Date
Akuli ceb308d402 run pytype_test in python 3.9 (#5425) 2021-05-12 19:13:01 +03:00
Akuli c4d163ad42 fix stubtest-unused-whitelist permissions (#5404) 2021-05-10 22:19:51 +03:00
Akuli 272d70cdd2 Fix several problems in stubtest unused (#5401) 2021-05-10 18:50:37 +02:00
Akuli 24532a101e readme: delete old mypy submodule stuff (#5399) 2021-05-10 07:56:26 -07:00
Akuli 5e907afac7 non-string fieldnames for csv.DictReader and csv.DictWriter (#5366) 2021-05-10 13:44:24 +02:00
Akuli 933787d5fe return Hashable from functools._make_key (#5385) 2021-05-09 20:23:40 +03:00
Akuli 83e875dffb Hide old mypy_primer comments (#5364) 2021-05-08 15:31:08 -07:00
Akuli 49cd02456c fixes for os.path.commonpath and os.path.commonprefix (#5363) 2021-05-08 15:30:26 -07:00
Akuli e885820bb7 document pyright test better (#5362) 2021-05-07 22:20:43 -07:00
Akuli 4b39a0fe43 CONTRIBUTING.md: explicitly avoid --amend (#5371)
* tell not to use --amend

* clarify how pull requests show up in git history
2021-05-07 23:52:26 +03:00
Akuli 4115d4ae13 delete pytype bug workaround (#5361) 2021-05-07 12:04:50 +02:00
Akuli 0bfb28b0b6 do not require running tests locally (#5356) 2021-05-06 14:33:53 -07:00
Akuli 97101b1d2c create stub for __main__ (#5354)
* create stub for __main__

* exclude from pyright, like all other __getattr__ incomplete stubs
2021-05-06 18:57:33 +03:00
Akuli e66b7fa660 delete _importlib_modulespec (#5350)
* delete _importlib_modulespec

* use typing_extensions.runtime_checkable
2021-05-06 17:13:35 +03:00
Akuli bb5fb845f2 use protocol for sys.meta_path (#5349) 2021-05-06 17:12:34 +03:00
Akuli 6905c0d02a fix ci (#5353) 2021-05-06 15:40:49 +02:00
Akuli 8379386bd4 get rid of Any in paramiko HostKeys (#5342) 2021-05-05 12:35:44 +02:00
Akuli 9f732a128a enable mypy_test for python 3.10 (#5341)
* enable mypy_test for python 3.10

* avoid collections.Mapping and collections.MutableMapping, import from typing
2021-05-05 00:09:33 +03:00
Akuli 54699d6cca change positional-only test to use Python 3.10 (#5340) 2021-05-04 13:35:05 -07:00
Akuli 59390469d6 Run stubtest on python 3.10 (attempt 2) (#5313) 2021-05-04 11:56:51 -07:00
Akuli e5d17d7d6c delete old comment (#5338)
* delete
2021-05-04 20:39:34 +03:00
Akuli 7dffcb5c6a Revert "run stubtest on python 3.10 (#5305)" (#5311)
This reverts commit 7590506039.
2021-05-02 12:55:26 -07:00
Akuli 30c83ab5e0 tkinter.font nametofont root arg py3.10 (#5307)
Fixes #5306
2021-05-02 17:52:09 +02:00
Akuli 7590506039 run stubtest on python 3.10 (#5305) 2021-05-02 17:46:17 +02:00
Akuli 8b23590952 fix requests.adapters.HttpAdapter.max_retries (#5268) 2021-04-30 15:46:02 +02:00
Akuli e98f398abc allow bytes in tkinter.PhotoImage (#5171) 2021-04-01 12:54:49 +02:00
Akuli dec1396d51 don't require isort[pyproject] (#5165) 2021-03-31 11:36:55 -07:00
Akuli 00da323113 sort contributor list by last name (#5158) 2021-03-30 20:27:09 +03:00
Akuli c9b1f988a5 CONTRIBUTING.md: core developer --> maintainer (#5157)
* CONTRIBUTING.md: core developer --> maintainer
2021-03-30 20:02:32 +03:00
Akuli 507ca60ff8 relax call argument type (#5056) 2021-02-23 11:26:27 +01:00
Akuli 64575f4ec2 make WindowsError available only on windows (#5036) 2021-02-20 13:36:21 +01:00
Akuli 1184e6e42b make WindowsError an alias of OSError (new in Python 3.3) (#5032)
make WindowsError an alias of OSError (new in Python 3.3)
2021-02-19 15:45:40 +01: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
Akuli ac0e2a6fe8 allow intvar (#4967) 2021-01-23 13:04:33 +01:00
Akuli 8f7ce5be26 use str for ttk states (#4955) 2021-01-19 17:02:22 -08:00
Akuli 886a6c407c support widgets in _TextIndex (#4954)
fixes #4953
2021-01-19 17:41:39 +01:00
Akuli 09f400ab4a add _SupportsIndex to py2 xrange and py3 range (#4929) 2021-01-15 10:14:42 -08:00
Akuli c5ed22a24e don't care about return type in SupportsWrite (#4928) 2021-01-11 10:30:31 -08:00
Akuli fe07a522b7 don't allow _TextIndex in last argument of tkinter.Text.replace() or insert() (#4927)
Fixes #4919
2021-01-11 15:34:46 +01:00
Akuli 4c50d7d266 http.cookies._{quote,unquote} allow None (#4915) 2021-01-10 13:11:00 -08:00
Akuli 206da3280e make BitmapImage keyword arguments optional (#4926) 2021-01-09 21:26:49 +01:00
Akuli 41ba271160 tkinter: add type hints to Wm methods (#4925) 2021-01-09 19:26:30 +01:00
Akuli a5f0761161 tkinter: add PhotoImage and BitmapImage type hints (#4923) 2021-01-09 19:24:36 +01:00
Akuli 4145873604 tkinter: add types to register and deletecommand methods (#4924) 2021-01-09 19:23:25 +01:00
Akuli 21547df35b tkinter: add types to clipboard methods (#4922) 2021-01-09 19:21:24 +01:00
Akuli 64c6ef77c7 more tkinter types (#4921) 2021-01-09 19:20:52 +01:00
Akuli 599ce2969b add types for tkinter focus methods (#4920) 2021-01-09 19:19:45 +01:00
Akuli 804281c547 tkinter nametowidget() type (#4904)
* nametowidget type

* return Any to prevent having to check return type
2021-01-08 15:04:38 +01:00
Akuli eaf29453fc tkinter: type hints for Menu add_foo and insert_foo methods (#4903) 2021-01-06 12:15:25 +01:00
Akuli effd7c53fa tkinter: more winfo_foo methods (#4911) 2021-01-06 11:54:16 +01:00
Akuli 916a3a0392 add types to destroy methods (#4902) 2021-01-05 16:55:01 +01:00
Akuli 2691d74796 tkinter: use bool instead of Literal[0, 1] (#4901) 2021-01-05 13:21:35 +01:00
Akuli 930de94c30 tkinter: event_foo method type hints (#4900) 2021-01-05 13:04:43 +01:00
Akuli 7710191cf4 tkinter.font.Font: make __getitem__ and cget behave the same (#4899) 2021-01-04 15:58:44 +01:00
Akuli bc1fe548b9 Don't use Literal for tkinter widget options (#4891) 2021-01-03 16:07:47 -08:00
Akuli c45a879b1f add types to winfo methods that return coordinates or sizes (#4894) 2021-01-03 16:47:31 +01:00
Akuli eb7381a3c1 use bool for tkinter.FALSE and its friends (#4853)
Fixes #4669
2020-12-25 16:07:55 +01:00
Akuli e3e395b28c fix assigning to tkinter.Tk().report_callback_exception (#4484) 2020-08-26 13:56:07 +02:00
Akuli 27e0ea0199 use Any for ignored callback return types in tkinter (#4485) 2020-08-26 13:54:44 +02:00
Akuli 910ecd1f56 add types to tkinter after methods (#4479) 2020-08-26 12:06:40 +02:00
Akuli 770fe90b0b add types to tkinter.Text methods (#4460) 2020-08-24 13:09:07 +02:00
Akuli ff35f99d44 fix tkinter config methods (#4459) 2020-08-24 13:06:36 +02:00
Akuli c065982b7a support anything with .keys() and __getitem__ in dict.__init__ (#4470) 2020-08-24 13:03:38 +02:00
Akuli 39ddef28bf make tkinter.font.Font behave similarly to tkinter widgets (#4469) 2020-08-24 13:00:20 +02:00
Akuli 7d1abc962d fix master attributes (#4468) 2020-08-20 11:55:49 +02:00
Akuli 6a06ff53f0 make canvas offset option optional (#4458) 2020-08-18 16:50:09 +02:00
Akuli e9ecea0033 Add options to tkinter widgets (#4363)
In tkinter, `widget['foo'] = bar` and `widget.config(foo=bar)` do the same thing, but they will now type-check differently: the `widget['foo'] = bar` syntax allows 'foo' to be any string (e.g. a variable, not necessarily a Literal) and bar to be any object, while `widget.config(foo=bar)` checks the existence of the option and the type of bar. Similarly, cget takes a Literal argument but __getitem__ takes a string. 

Testing script can still be found at https://github.com/python/typeshed/pull/4363/commits/c42a72c53e552ab501455def07017181f0158e80
2020-08-17 13:59:51 -07:00
Akuli e1c4d2a713 more permissive type for tkinter fonts (#4453) 2020-08-17 15:52:16 +02:00
Akuli 0ebe4c2b65 fix eval and call return types (#4451) 2020-08-16 12:30:04 -07:00
Akuli 954ce8c703 create _tkinter stub (#4372) 2020-08-08 14:14:52 +02:00
Akuli 8bf7efe94e add types for tkinter geometry manager (aka pack,grid,place) methods (#4379) 2020-07-31 14:34:47 +02:00
Akuli 09c91a00ac add type hints for tkinter.Variable and its subclasses (#4378) 2020-07-31 10:53:57 +02:00
Akuli 2c37551fd1 make tkinter.Event generic and add missing type hints to bind methods (#4347) 2020-07-25 14:23:26 +02:00
Akuli 9efc9d8818 add tkinter.font stub (#4350) 2020-07-22 11:46:04 -07:00