eb7b97ee78
Add types to Markdown ( #6045 )
...
Most methods and attributes were previously untyped or `Any`-typed.
Co-authored-by: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com >
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2021-09-20 18:39:53 +03:00
Akuli
196f69b27e
dict.__init__: support dict(string.split(sep) for string in iterable) ( #6050 )
2021-09-20 13:52:41 +02:00
Akuli
aff3e4d1c5
Create stubs for appdirs ( #6047 )
2021-09-20 13:20:06 +02:00
Akuli
75c75a093e
ttkthemes: allow constructing ThemedStyle with no arguments ( #6046 )
2021-09-19 15:11:08 -07:00
Akuli
7ed8da4415
Create stubs for toposort ( #6048 )
2021-09-19 14:04:23 -07:00
Akuli
afad78343a
change prints in scripts/create_baseline_stubs.py ( #6051 )
2021-09-19 12:38:23 -07:00
Akuli
e69ca588ac
Stubs for ttkthemes ( #6024 )
2021-09-10 15:59:12 +02:00
Akuli
832a24c8a1
Create send2trash stubs ( #6000 )
2021-09-03 22:51:03 +02:00
Akuli
6307bfd421
Delete yaml.CDangerLoader and yaml.CDangerDumper ( #5990 )
...
These no longer exist in PyYAML 4.2.
2021-09-01 10:50:30 +03:00
Akuli
8d5452e873
do not use mypy-specific syntax in '# type: ignore' comments ( #5953 )
2021-08-29 03:58:34 -07:00
Akuli
cd90721604
Clean up tests/check_pep_604.py ( #5980 )
2021-08-28 21:56:53 -07:00
Akuli
9af9cca7f3
lowercase list and dict in the rest of stdlib ( #5892 )
2021-08-09 00:13:08 +02:00
Akuli
191aac3b0e
lowercase list and dict for 3rd party stubs ( #5893 )
...
* stubs/decorator/decorator.pyi
* stubs/frozendict/frozendict.pyi
* stubs/Jinja2/jinja2/nodes.pyi
* stubs/Pygments/pygments/token.pyi
* stubs/requests/requests/models.pyi
* stubs/Werkzeug/werkzeug/http.pyi
2021-08-08 13:25:18 -07:00
Akuli
24780a3e03
imaplib, nntplib, plistlib, poplib: use lower-case list and dict ( #5890 )
2021-08-08 18:46:23 +02:00
Akuli
ce11072dbe
Big diff: use lower-case list and dict ( #5888 )
2021-08-08 09:26:35 -07:00
11f54c3407
add missing arguments to croniter ( #5887 )
...
Co-authored-by: Søren Bjerregaard Vrist <sbv@csis.dk >
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2021-08-08 18:33:16 +03:00
Akuli
b1d1551bbc
tkinter.Canvas: types for addtag_foo() and find_foo() methods ( #5886 )
2021-08-08 17:14:45 +03:00
Akuli
c0e2346346
new union syntax in CONTRIBUTING.md ( #5879 )
2021-08-08 15:48:56 +02:00
Akuli
1409f6e892
change ast files to use new union syntax ( #5880 )
2021-08-08 15:47:33 +02:00
Akuli
1154218a0e
switch to new union syntax in third-party stubs ( #5881 )
2021-08-08 15:46:55 +02:00
Akuli
c12c93ebe4
use new union syntax in stdlib/types.pyi ( #5882 )
2021-08-08 15:46:09 +02:00
Akuli
1395318faa
use new union syntax in ctypes/__init__.pyi ( #5883 )
2021-08-08 15:45:28 +02:00
Akuli
df6a211855
Use new union syntax in rest of stdlib ( #5884 )
2021-08-08 15:44:30 +02:00
Akuli
ebacd320a3
support passing coordinate tuples to tkinter.Canvas.create_foobar() ( #5885 )
2021-08-08 15:43:28 +02:00
Akuli
ef5b4b6820
setattr: Any --> object ( #5877 )
2021-08-08 11:12:23 +02:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
Akuli
e3f662b648
switch to lower-case "# undocumented" comments ( #5871 )
2021-08-07 08:00:41 -07:00
Akuli and Sebastian Rittau
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
Akuli
e676fcabd3
Create pygments stubs ( #5759 )
...
* run stubgen
* replace individual lexers with __getattr__ in lexers/__init__.pyi
* replace individual styles with __getattr__ in styles/__init__.pyi
* import-export each formatter into formatters/__init__.pyi
* clean up slightly with quick and dirty script
* manual fixing
2021-07-11 16:27:35 +03:00
Akuli and Jelle Zijlstra
fdf073627c
maybe fix stubtest ( #5746 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2021-07-09 12:06:26 +03:00
Akuli
42247feefb
use Self in async context managers ( #5724 )
2021-07-06 08:47:49 +02:00
Akuli
b06352556d
Use Literal["little", "big"] for byteorder ( #5715 )
2021-06-30 13:15:50 -07:00
Akuli
11b99e1141
@python2 nits ( #5672 )
...
* tiny tests/mypy_test.py cleanup
* try to make CONTRIBUTING.md less confusing
2021-06-21 21:42:45 +03:00
Akuli
c5b59b9e41
Pymysql cursor types and fetching return types ( #5652 )
...
version update: stubs made based on pymysql 1.0.2
2021-06-17 20:53:22 +02:00
Akuli
515aa6fa3d
pymysql: query arguments can be any value ( #5653 )
2021-06-17 11:02:37 +02:00
Akuli
63fd1688c5
Delete attrs ( #5585 )
...
Closes #5581
2021-06-08 16:02:38 +02: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
Akuli
55a2a180c6
tempfile._TemporaryFileWrapper enhancements ( #5519 )
2021-05-25 15:30:08 +02:00
Akuli
fb5387e6e4
use comment-hider v0.3.0 ( #5521 )
2021-05-23 00:42:27 +02:00
Akuli
2628e77272
add _Pickler.dispatch and _Unpickler.dispatch ( #5508 )
2021-05-19 23:28:18 +03:00
Akuli
90e8629ed8
Add comment hider back ( #5495 )
2021-05-18 21:51:24 +02:00
Akuli and Sebastian Rittau
17dcea4a68
Akuli and srittau: Remove Python 2 branches from Python 3 stubs ( #5461 )
...
* run script and do some manual changes (Akuli)
* do the whole thing manually (srittau)
* merge changes (Akuli)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2021-05-15 15:33:39 +03:00
Akuli
b0ef85288d
flake8: do not exclude @python2 dirs ( #5457 )
2021-05-15 12:05:26 +02:00
Akuli
15b0959cf8
stdlib/@python2: clean imports ( #5453 )
2021-05-15 01:08:37 +02:00
Akuli
5ec4f06263
clean python 3 specific stuff from stdlib/@python2 stubs ( #5451 )
2021-05-15 00:19:05 +02:00
Akuli
5afd250792
mypy_primer: use 'needs: mypy_primer' for comment job ( #5428 )
2021-05-14 22:28:34 +03:00
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