Akuli
0ad004a776
tkinter: Simplify wm_iconphoto() ( #11508 )
2024-02-29 13:45:45 +02:00
Akuli
60826ed6c4
Add stubs for lzstring ( #11479 )
2024-02-27 21:54:57 +02: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 and pre-commit-ci[bot]
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
Akuli
e6e2f22e6c
Annotate tkinter.Canvas.type() ( #11366 )
2024-02-06 07:31:59 +01:00
Akuli
02e19d6e2d
tkinter: font size must be integer ( #11295 )
2024-01-21 02:10:29 +01:00
Akuli
3ede0565d1
requests: Use the Any trick in HTTPError ( #11207 )
2023-12-30 01:28:10 -08:00
Akuli
51ec2f0900
tkinter: Use a TypeVarTuple in .after() and .after_idle() methods ( #11014 )
2023-12-08 23:00:13 +00:00
Akuli
cad0c04ec0
tkinter: Require passing in a callback function to .after() ( #11013 )
2023-11-10 20:18:25 +02:00
Akuli
99563a2e6e
Use @deprecated in tkinter.Variable tracing methods ( #11011 )
2023-11-10 19:38:20 +02:00
Akuli and Alex Waygood
fbd7963fd6
Delete tkinter._ExceptionReportingCallback ( #10689 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-09-12 20:16:47 +03:00
Akuli and pre-commit-ci[bot]
a785041250
create_baseline_stubs.py: Improve pyright config file editing ( #10629 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-30 17:43:46 +03:00
Akuli
38dc97ba71
Complete send2trash stubs ( #10504 )
2023-07-25 13:31:17 +01:00
Akuli
754473a30d
Add a few more upstream_repository URLs ( #10489 )
2023-07-20 17:23:19 +02:00
Akuli
03b8c60a02
Support dict(foo.split() for foo in bar) with bytes ( #10072 )
2023-04-22 18:28:34 +03:00
Akuli
f20cb4ed45
Accept int in tkinter.Canvas dash arguments ( #10004 )
2023-04-03 20:58:27 +02:00
Akuli
87c1b949cd
Delete some unnecessary type aliases in tkinter ( #9970 )
2023-03-28 20:37:29 +03:00
Akuli
a1979dffc2
Update mypy ( #9855 )
2023-03-08 11:34:54 +02:00
Akuli
37a180ef7b
Use octal for mode defaults ( #9670 )
2023-02-03 19:12:53 +00:00
Akuli
02f2bc30e7
Make peewee stubs compatible with peewee 3.15.4 ( #9176 )
2022-11-12 16:12:55 -08:00
Akuli
1cb5482554
Add auto-generated peewee stubs ( #8834 )
2022-10-04 12:35:07 +02:00
Akuli
ba7f9b3715
Fix installing dependencies for 3rd party stubtest ( #8807 )
2022-09-29 10:52:11 +02:00
Akuli
11a14f58a3
Delete builtins._StandardError ( #8806 )
2022-09-29 09:32:11 +01:00
Akuli
ab022557e2
Run third-party stubtest under xvfb-run ( #8719 )
2022-09-10 18:34:11 +03:00
Akuli
b98ee679fb
tree-sitter: add missing members ( #8693 )
2022-09-06 12:28:11 -07:00
Akuli
5ea1b1e6de
Add types to tkinter.colorchooser.askcolor ( #8588 )
2022-08-22 18:15:37 +02:00
Akuli and Alex Waygood
0b28177268
Add stubs for tree-sitter-languages ( #8548 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-08-17 23:35:44 +03:00
c9ebeb501c
Add stubs for tree_sitter ( #8533 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-08-16 21:48:59 -07:00
Akuli
57179d4080
tkinter: get rid of unnecessary Incomplete ( #8471 )
2022-08-02 15:03:24 -07:00
Akuli and Alex Waygood
5e5f3b4ecc
Use typeshed.Incomplete and object instead of Any in tkinter stubs ( #8458 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2022-08-02 22:10:25 +03:00
3c90c97b9a
List[Foo] + List[Bar] now returns List[Foo | Bar] ( #8293 )
...
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>
2022-07-15 20:20:50 +03:00
Akuli
f77d0f80a8
requests: allow immutable headers ( #7932 )
2022-05-25 20:22:05 -07:00
Akuli
9a09db46f5
Fix requests.Session().hooks ( #7871 )
...
Fixes #7776
Mutating hooks, as in `session.hooks['response'] = ...`, should work. Reassigning it like `session.hooks = ...` is probably a bad idea, so it will always be a `dict`.
2022-05-18 19:31:34 -07:00
Akuli
6c6c669ada
Run mypy_primer in all pull requests ( #7804 )
2022-05-07 09:58:53 +03:00
Akuli
58f2e317c1
tkinter: add _windowingsystem() ( #7803 )
2022-05-06 23:45:47 -07:00
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
Akuli
205959917b
sys: delete unnecessary python version check ( #7742 )
2022-04-29 22:58:36 +02:00
Akuli
e613fc483b
Delete python 2 branches from third-party stubs ( #7741 )
...
Since #7703 , we no longer have third-party stubs that support Python 2, so code like `if sys.version_info >= (3, 0)` can be simplified.
2022-04-29 20:53:01 +01:00
Akuli
bfa918880f
asyncio: expose WriteTransport.get_write_buffer_limits on all Python versions ( #7718 )
2022-04-27 16:38:25 +03:00
Akuli
7576c5e1d5
asyncio: add missing methods to _FlowControlMixin ( #7719 )
2022-04-27 16:32:22 +03:00
Akuli
f87e811345
Remove old comments about pinned Python versions ( #7622 )
2022-04-14 00:58:47 -07:00
Akuli
40553277ad
asyncio: use WriteTransport in StreamWriter ( #7611 )
2022-04-09 07:03:34 -07:00
Akuli
f9cb7c3ed4
Use Literal for statistics.quantiles() ( #7463 )
...
I'm going to merge; I think this is consistent with what we've done with e.g. the `byteorder` argument for `int.from_bytes` :)
2022-03-08 21:38:31 +00:00
6c967d4202
Update cachetools to 5.0.0 ( #7455 )
...
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>
2022-03-08 19:20:22 +00:00
Akuli
30a424c661
Finish renaming stubtest.yml to daily.yml ( #7448 )
2022-03-07 11:09:24 +02:00
Akuli
dff461fc6a
improve tkinter.Treeview.heading and tkinter.Treeview.item ( #6999 )
2022-01-23 14:53:30 +01:00
Akuli
a22ca2ec51
make the default positional-or-keyword in Mapping.get and MutableMapping.pop ( #6694 )
2022-01-22 07:19:01 -08:00
Akuli and Nikita Sobolev
61495d80aa
Automatically create an issue if the nightly stubtest run fails ( #6978 )
...
Co-authored-by: Nikita Sobolev <mail@sobolevn.me >
2022-01-20 18:24:14 +02:00
Akuli
80c75fb029
Stricter pyright checks for playsound ( #6948 )
2022-01-18 16:36:51 +01:00
Akuli
5d20635890
pygments: delete _TokenType.__init__ ( #6918 )
2022-01-14 19:13:14 -08:00
Akuli
f9c650d167
Delete duplicate union members ( #6916 )
2022-01-14 17:41:06 +02:00
Akuli
df0fe16456
requests: remove an unused allowlist entry ( #6911 )
2022-01-13 20:35:37 +01:00
Akuli
62f22ef0cc
CONTRIBUTING.md: remove duplicate info about how CI runs tests ( #6910 )
2022-01-13 08:01:20 -08:00
Akuli
b77f994801
Improve _tkinter ( #6908 )
2022-01-13 17:05:20 +02:00
Akuli
11642f866c
Recommend scripts/create_baseline_stubs.py in CONTRIBUTING.md ( #6906 )
2022-01-13 15:11:20 +01:00
Akuli
b2375ddaeb
Enable pyright for Python 3.11 ( #6904 )
2022-01-12 20:07:57 +01:00
Akuli
423ae7f8fd
requests: Remove an unused allowlist entry ( #6897 )
2022-01-12 00:53:43 -08:00
Akuli
e743ea9ca7
Improve turtle.ScrolledCanvas ( #6757 )
2022-01-09 11:24:45 -08:00
Akuli
950cff21f6
create_baseline_stubs.py: Fix stubgen invocation ( #6856 )
2022-01-08 12:33:29 +01:00
Akuli
a7886bfa55
Fix several typos in comments ( #6830 )
2022-01-05 18:44:34 +01:00
Akuli
b5666d473d
Improve comments of builtins.function ( #6818 )
2022-01-04 14:04:33 -06:00
Akuli
38a08fcf04
List returned from re.split() can contain Nones ( #6763 )
2021-12-30 13:27:39 -06:00
Akuli
0f7dbd811e
move stat.FILE_ATTRIBUTE_* to _stat.pyi and fix availability ( #6761 )
2021-12-30 13:07:28 -06:00
Akuli
7fc402a6d0
Move IO_REPARSE_TAG_* constants to _stat ( #6760 )
2021-12-30 18:26:57 +01:00
Akuli
c3cc5e47c0
delete very old autogenerated comments ( #6755 )
2021-12-30 17:16:06 +01:00
Akuli
a89e5bb0cf
Relax check_new_syntax.py to allow elif statements for old versions ( #6729 )
2021-12-29 18:50:11 +02:00
Akuli
bae606da8d
Enable stubtest for jack ( #6727 )
2021-12-29 11:42:28 +01:00
Akuli
4aa4cb9ae2
stubtest_third_party: do not install apt packages in the same script ( #6714 )
2021-12-28 11:33:49 +01:00
Akuli
1c43c6b30d
Fix CI failure ( #6707 )
2021-12-26 23:26:37 +02:00
Akuli
66ed211691
Re-enable stdlib stubtest on macos ( #6696 )
2021-12-26 19:59:04 +01:00
Akuli
9efc0c0dca
pygments: Annotate several generator functions ( #6695 )
2021-12-26 13:53:41 +01:00
Akuli
48f13e451a
shorten tkinter's comments ( #6675 )
2021-12-23 14:07:19 +02:00
Akuli
714ba1747b
stubtest: temporary pin to python 3.10.0 ( #6602 )
2021-12-16 12:47:47 +02:00
Akuli
dc4c9534c7
allowlists: add comment to hmac.HMAC.blocksize ( #6539 )
2021-12-07 13:13:35 -08:00
Akuli
91465a1d07
toposort: Make argument types less restrictive ( #6531 )
2021-12-07 16:26:09 +01:00
Akuli
f31b49699a
fix mypy_primer_comment workflow for more shards ( #6533 )
2021-12-07 16:12:00 +01:00
Akuli
7155bdae63
Re-export more os functions in posix, tweak availability on linux ( #6529 )
2021-12-07 16:10:41 +01:00
Akuli
44f71867c7
add tkinter.EventType aliases ( #6516 )
2021-12-07 15:10:39 +02:00
Akuli
3da1db2698
shard mypy_primer more ( #6530 )
2021-12-07 15:03:59 +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
08649177f1
Add codecs.BOM* constants ( #6515 )
2021-12-06 17:36:09 +02:00
Akuli
bc912ea472
correct traceback.print_exception and traceback.format_exception on python 3.10 ( #6512 )
2021-12-06 15:43:32 +01:00
Akuli and Jelle Zijlstra
a4118b1a09
trust_server_pasv_ipv4_address: move comments to allowlists ( #6496 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2021-12-05 23:59:47 +02:00
Akuli
7225dfafcf
add several re-exports to posix ( #6495 )
2021-12-05 08:45:24 -08:00
Akuli
24afb531ff
stubtest_stdlib: get rid of --ignore-missing-stub ( #6491 )
...
* get rid of --ignore-missing-stub
* update allowlists based on github actions logs, with script
import re
platforms = ["linux", "win32", "darwin"]
versions = ["py36", "py37", "py38", "py39", "py310"]
entries_by_pv = {}
for p in platforms:
for v in versions:
p_name = {"linux": "ubuntu", "darwin": "macos", "win32": "windows"}[p]
v_name = "3." + v.replace("py3", "")
if v_name == "3.9":
v_name = "3.9.7"
entries = set()
with open(f"la/Check stdlib with stubtest ({p_name}-latest, {v_name})/6_Run stubtest.txt") as file:
for line in file:
m = re.search(r"error: (.*) is not present in stub$", line.strip())
if m:
entries.add(m.group(1))
entries_by_pv[p, v] = entries
def remove_intersection(sets):
sets = list(sets)
result = set(sets[0])
for s in sets[1:]:
result &= s
for s in sets:
for r in result:
s.remove(r)
return result
common_to_all = remove_intersection(entries_by_pv.values())
common_to_version = {}
for v in versions:
common_to_version[v] = remove_intersection([
entries
for (p, v2), entries in entries_by_pv.items()
if v == v2
])
common_to_platform = {}
for p in platforms:
common_to_platform[p] = remove_intersection([
entries
for (p2, v), entries in entries_by_pv.items()
if p == p2
])
def write(fname, entries):
with open(f"tests/stubtest_allowlists/{fname}.txt", "a") as file:
file.write("\n# Exists at runtime, but missing from stubs\n")
for i in sorted(entries):
file.write(i + "\n")
write("py3_common", common_to_all)
for v, entries in common_to_version.items():
write(v, entries)
for p, entries in common_to_platform.items():
write(p, entries)
for (p, v), entries in entries_by_pv.items():
write(p + "-" + v, entries)
* Manually combine __main__ attributes into a single entry
* move and comment entries manually
2021-12-04 16:58:44 -08:00
Akuli
3f281881c2
get rid of remaining references to pallets stubs ( #6474 )
2021-12-02 21:41:40 +02:00
Akuli and Sebastian Rittau
ec0051a59b
ci: fix stubtest_third_party while loop ( #6468 )
...
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2021-12-01 19:32:33 +02:00
Akuli
50d29ef424
ci: Do not run stubtest_third_party for deleted stubs ( #6467 )
2021-12-01 18:15:17 +01:00
Akuli
4631b74919
Fix various issues in redis.client ( #6464 )
2021-12-01 17:09:48 +01:00
Akuli
ea3f962860
Move all definitions except environ from posix to os ( #6442 )
2021-12-01 17:07:33 +01:00
Akuli and pre-commit-ci[bot]
bdf906e2bc
stubtest_stdlib: fail if there are unused allowlist entries ( #6424 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-01 12:10:27 +02:00
deaa764915
redis: fix several stubtest warnings ( #6378 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2021-12-01 12:00:07 +02:00
Akuli and Alex Waygood
b3e8073bac
Create unittest._log stub and improve _AssertLogsContext ( #6428 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2021-11-30 21:39:14 -08:00
Akuli
c8c5519fa6
sqlite3: stubtest fixes ( #6441 )
2021-11-29 11:07:20 -08:00
Akuli
f29f0a5394
importlib: stubtest fixes for py310 ( #6443 )
2021-11-29 11:05:54 -08:00
Akuli
52559e83cf
add comment about CodeType.replace to stubtest allowlists ( #6447 )
2021-11-29 09:01:00 -08:00
Akuli
71999b7cde
operator.countOf takes Iterable ( #6431 )
2021-11-28 14:34:05 -08:00
Akuli
99f6e022f7
ipaddress: return unions from ip_address, ip_network, ip_interface ( #6400 )
2021-11-28 08:06:22 -08:00
Akuli
2b702233c6
tests/check_new_syntax.py: check order of if statements ( #6423 )
2021-11-28 08:04:46 -08:00