Jelle Zijlstra
0949e9e90d
remove quoted strings ( #6933 )
2022-01-16 14:29:13 -08:00
Jelle Zijlstra
85318d1b21
Cleanup: do not quote types unnecessarily ( #6931 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-16 20:18:17 +02:00
Jelle Zijlstra
339bfbbfaa
remove "= ..." from top-level values ( #6930 )
2022-01-16 18:38:00 +02:00
Alex Waygood
425ba77bb2
Remove even more unused TypeVars ( #6928 )
2022-01-16 08:07:32 -08:00
Alex Waygood
dbcb38a605
Add more missing methods to os._Environ ( #6926 )
2022-01-16 06:45:11 -08:00
Alex Waygood
af8e37d273
Add # noqa comments to typing.AnyStr ( #6925 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-01-16 14:23:22 +02:00
Jelle Zijlstra
e53aa04eb2
Add typing_extensions.is_typeddict ( #6923 )
2022-01-15 17:02:23 -08:00
Matt Bogosian
f55dff80f0
Override os._Environ.__ior__ ( #6921 )
...
Supporting the `|=` operator for `os.environ` was introduced in Python 3.9. However,
this led to false negatives in type checking statements like `os.environ |= {"k": "v"}`
and `os.environ |= [("k", "v")]` because the definition inherited from
`typing.MutableMapping` was insufficient. This addresses that deficiency.
Fixes #6919 .
2022-01-15 15:52:31 -08:00
Nikita Sobolev
141ac273ae
Remove Any from array.pyi ( #6922 )
2022-01-15 15:30:58 -08:00
Joseph Young
b119ff2717
Fix shutil.copy2 stub ( #6875 )
2022-01-15 15:20:08 -08:00
Akuli
5d20635890
pygments: delete _TokenType.__init__ ( #6918 )
2022-01-14 19:13:14 -08:00
Nikita Sobolev
74d043b9bb
Use Literal type in io and _compression ( #6917 )
2022-01-14 11:32:07 -08:00
Akuli
f9c650d167
Delete duplicate union members ( #6916 )
2022-01-14 17:41:06 +02:00
Nikita Sobolev
cfcabfd33d
Use Literal types in ftplib ( #6914 )
2022-01-14 13:36:48 +01:00
DatGuy1
7920f502e2
Add get_localzone_name to tzlocal ( #6912 )
2022-01-14 00:35:24 +01: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
Jelle Zijlstra
1a0e0a4023
urllib3: allow allowed_methods to be False ( #6909 )
2022-01-13 15:26:56 +01:00
Akuli
11642f866c
Recommend scripts/create_baseline_stubs.py in CONTRIBUTING.md ( #6906 )
2022-01-13 15:11:20 +01:00
Nikita Sobolev
f42de016b8
Remove misleading comment from staticmethod and classmethod ( #6907 )
2022-01-13 12:59:28 +01:00
Joseph Young
13e31aa3bf
Add stubs for aiofiles.os.path ( #6787 )
2022-01-13 12:31:19 +02:00
Sebastian Rittau
f7534891f1
Annotate command kwargs arguments ( #6721 )
2022-01-13 11:22:08 +01:00
Taj
7764a4f4d5
Fix cachetools maxsize argument types ( #6901 )
2022-01-12 20:58:39 +01:00
Akuli
b2375ddaeb
Enable pyright for Python 3.11 ( #6904 )
2022-01-12 20:07:57 +01:00
Jelle Zijlstra
a4b30c4360
fix typo in _SplitCondition definition ( #6903 )
2022-01-12 19:51:24 +02:00
Nikita Sobolev
e8cc83e62e
Use Literal type in configparser ( #6900 )
2022-01-12 08:18:24 -08:00
Nikita Sobolev
d108c19675
Use Literal type in datetime ( #6899 )
2022-01-12 08:12:23 -08:00
Matteo Centenaro
6907d7f7c6
Update types in urllib3.util.retry ( #6892 )
2022-01-12 10:06:49 +01:00
Akuli
423ae7f8fd
requests: Remove an unused allowlist entry ( #6897 )
2022-01-12 00:53:43 -08:00
Alex Grönholm
143d57690e
Corrected (Base)ExceptionGroup names and types ( #6895 )
...
The second argument to `ExceptionGroup` is positional-only. The `exceptions` property always returns a tuple, no matter what the type of the original `__exceptions` argument is.
2022-01-11 15:02:08 -08:00
Nikita Sobolev
3101849451
Use Literal type in winsound ( #6891 )
2022-01-11 04:26:37 -08:00
AChenQ
d0907f1073
urllib3: add "__version__" ( #6890 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
2022-01-10 19:33:30 -08:00
ThePhilgrim
7191d12e24
Add stubs for playsound ( #6881 )
2022-01-10 22:23:28 +02:00
Alex Waygood
7d33ff330a
Clean up several version-dependent modules ( #6885 )
2022-01-10 05:57:08 -08:00
Nikita Sobolev
a8c9c194b4
Improve cmp_op in opcode ( #6884 )
2022-01-10 12:07:04 +01:00
Philip Dexter
9de17bd5ae
Fix urllib3.util.Retry.sleep type ( #6883 )
2022-01-10 10:58:23 +01:00
Nipunn Koorapati
fc4ba3ac64
Bump protobuf to 3.19.2 ( #6879 )
2022-01-10 10:03:41 +01:00
Alex Waygood
96c9abb058
Always use _typeshed.Self, where applicable ( #6880 )
...
* Always use `_typeshed.Self`, where applicable
* Revert changes to `google-cloud-ndb` (ambiguous)
* Remove empty line added by script
* Revert changes to `stubs/python-dateutil/dateutil/relativedelta.pyi`
* Manually add a few more that the script missed
* Improve `filelock` annotation
Source code here: 79ec7b2826/src/filelock/_api.py (L207)
* Improve `opentracing/scope` annotation
Source code here: 3e1d357a34/opentracing/scope.py (L71)
* Improve `redis/client` stub
Source code here: 15f315a496/redis/client.py (L1217)
* Improve `redis/lock` annotation
Source code here: 15f315a496/redis/lock.py (L155)
* Improve `requests/models` annotation
Source code here: d718e75383/requests/models.py (L653)
2022-01-09 19:16:19 -08:00
Alex Waygood
3351f0c0b9
Remove unused requests allowlist entry ( #6882 )
2022-01-10 00:18:23 +01:00
Joseph Young
f68047e88e
Annotate urllib3.exceptions ( #6865 )
2022-01-09 21:57:33 +01:00
Joseph Young
75a608bf49
Annotate urllib3.response ( #6871 )
2022-01-09 21:54:40 +01:00
Alex Waygood
a0b5deda40
All instance attributes on memoryview are read-only ( #6878 )
...
* All instance attributes on `memoryview` are read-only
* [pre-commit.ci] auto fixes from pre-commit.com hooks
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-09 12:07:09 -08:00
Akuli
e743ea9ca7
Improve turtle.ScrolledCanvas ( #6757 )
2022-01-09 11:24:45 -08:00
Alex Waygood
4e046163b5
Delete many redundant method redefinitions ( #6877 )
2022-01-09 11:21:03 -08:00
Nikita Sobolev
bb6a6e3421
Use Literal and __all__ in binhex ( #6845 )
2022-01-09 18:34:44 +01:00
Nikita Sobolev
34426dbc20
Change get_cache_token to return a NewType in _py_abc ( #6872 )
2022-01-09 18:33:45 +01:00
Nikita Sobolev
da3292d271
Use Literal type for BOM_* constants in codecs.pyi ( #6873 )
2022-01-09 18:31:15 +01:00
Jelle Zijlstra
49d2fa5f9d
put redis.client._ScoreCastFuncReturn back ( #6876 )
...
#6829 removed it as unused but #6790 added a usage.
2022-01-09 19:03:51 +02:00
Nikita Sobolev
afb265ce84
Improve bdb with Literal and __all__ ( #6844 )
2022-01-09 18:40:35 +02:00