Sebastian Rittau
f7aa41245e
Drop Python 2 support in third-party stubs ( #7703 )
2022-04-27 15:32:17 +03:00
Alex Waygood
740193a8fc
Use TypeAlias where possible for type aliases ( #7630 )
2022-04-15 18:01:00 -07:00
Jelle Zijlstra
b7d129f727
PEP 604: Remove some more uses of Union/Optional ( #7515 )
...
The following patterns still break mypy:
1. `type[]` at top level fails
2. `tuple[T1, T2]` at top level fails (but `tuple[T1, ...]` is fine)
3. `T1 | Callable[..., T2 | T3]` fails, but only <=3.9
This PR cleans up usage of `Union` and `Optional` outside these patterns.
2022-03-19 08:23:00 -07:00
Alex Waygood
3ab250eec8
Use PEP 604 syntax wherever possible ( #7493 )
2022-03-16 16:01:33 +01:00
Jelle Zijlstra
339bfbbfaa
remove "= ..." from top-level values ( #6930 )
2022-01-16 18:38:00 +02:00
Alex Waygood
8d5d2520ac
Use PEP 585 syntax wherever possible ( #6717 )
2021-12-28 11:31:43 +01:00
Sebastian Rittau
14e5d16c3a
Replace METADATA stubtest key with stubtest_apt_packages ( #6704 )
2021-12-27 17:28:59 +01:00
Sebastian Rittau
bb77f39b7c
Add a 'stubtest' flag to METADATA.toml ( #6687 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-12-25 17:02:57 +02:00
Sebastian Rittau
9f86972350
Add star to all non-0.1 versions ( #6146 )
2021-10-11 13:41:19 -07:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
Jelle Zijlstra
620cf38152
pyaudio: don't use ClassVar[Final] ( #5498 )
2021-05-18 19:25:14 -07:00
Vasily Zakharov
3774fa9e8e
Stubs for PyAudio ( #5081 )
2021-03-23 17:08:22 -07:00