Commit Graph

471 Commits

Author SHA1 Message Date
Alex Waygood
6a88d5e7ae Use _typeshed.Self in Python 2, too (#6932) 2022-01-16 14:44:51 -08:00
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
Akuli
5d20635890 pygments: delete _TokenType.__init__ (#6918) 2022-01-14 19:13:14 -08: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
Jelle Zijlstra
1a0e0a4023 urllib3: allow allowed_methods to be False (#6909) 2022-01-13 15:26:56 +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
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
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
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
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
Charles Smith
14c2ff6116 Minor improvements to redis stubs for scan and zset methods (#6790) 2022-01-09 18:33:22 +02:00
Sebastian Rittau
67c5d73cdb Further annotate sqlalchemy.engine and collections (#6680) 2022-01-09 15:20:17 +02:00
Sam Bull
933fec014c Pygments: make Formatter generic and improve format/highlight (#6819)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-08 20:27:51 +02:00
Alex Waygood
a40d79a4e6 Use lowercase type everywhere (#6853) 2022-01-08 16:09:29 +01:00
Sebastian Rittau
f8501d33c7 Use types-urllib3 for requests (#6859) 2022-01-08 16:25:50 +02:00
Sebastian Rittau
29563c3cc3 Add urllib3 stubs (#6858) 2022-01-08 14:49:06 +02:00
Sebastian Rittau
e77a66aced Update pyright (#6840) 2022-01-07 18:58:15 +02:00
Thorben Dahl
da78d7cbc3 Improve Babel dates stub (#6730) 2022-01-07 17:10:32 +01:00
Luca Chiodini
3b73acb06b Pillow: Image fixes (#6848)
* Fix return type of `Image.transform()`.
* Add animation attributes to `Image`.
2022-01-07 17:08:30 +01:00
Ambrose Chua
032e6ee90c requests: Add JSONDecodeError (#6838) 2022-01-06 19:34:22 -08:00
Alex Waygood
2268955701 Remove several unused TypeVars (#6829) 2022-01-05 17:58:03 +02:00
Sebastian Rittau
4f4068243a Upgrade stubs to Pillow 9 (#6795)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-05 14:17:56 +02:00
Nipunn Koorapati
b22f29bec1 Add google.protobuf.internal.api_implementation (#6802) 2022-01-03 22:00:19 +01:00
Joseph Young
fdc5a568ab Add six.moves.copyreg six stubs (#6793) 2022-01-03 17:30:14 +01:00
Joseph Young
4538770404 Add missing functions and keyword arguments to aiofiles.os (#6785)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-02 20:08:00 +02:00
Alex Waygood
505ea72641 Never explicitly inherit from object in Python 3-only stubs (#6777) 2022-01-02 07:24:48 +01:00
Joseph Young
fbf5982d4d Add regex stubs (#6713)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-30 21:15:42 +02:00
Akuli
bae606da8d Enable stubtest for jack (#6727) 2021-12-29 11:42:28 +01:00
Alex Waygood
ab893c91fd pygments: remove outdated TODOs (#6725) 2021-12-28 22:23:23 +02:00
Sebastian Rittau
22bf9e8a78 redis: Restore type annotations of ping() and save() (#6720) 2021-12-28 13:08:05 +02:00
Alex Waygood
8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Sebastian Rittau
e6cb341d94 Update redis stubs to 4.1 (#6711)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-27 21:34:34 +02:00
Sebastian Rittau
14e5d16c3a Replace METADATA stubtest key with stubtest_apt_packages (#6704) 2021-12-27 17:28:59 +01:00
Alex Waygood
975b3e901b Always alias collections.abc.Set (#6712) 2021-12-27 17:09:47 +01:00
Sebastian Rittau
51a2cd1289 Enable stubtest for six (#6699) 2021-12-27 12:36:17 +02:00
Sebastian Rittau
d065ee4aef Enable stubtest for aiofiles (#6698) 2021-12-26 15:54:42 +02:00
Sebastian Rittau
74cd202b2d Annotate return type of pygments.plugin.iter_entry_points (#6697)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-26 14:44:40 +01:00
Akuli
9efc0c0dca pygments: Annotate several generator functions (#6695) 2021-12-26 13:53:41 +01:00