Commit Graph

894 Commits

Author SHA1 Message Date
kasium
0238956f90 Add stubs for pep8-naming (#7030) 2022-01-25 08:39:16 +01:00
Sebastian Rittau
fabd842857 Annotate parts of jsonschema.validators and URIDict (#7025) 2022-01-24 16:42:29 +01:00
Nipunn Koorapati
35064a7f75 Bump to mypy-protobuf 3.2.0 (#7013) 2022-01-23 14:49:33 -08:00
Jelle Zijlstra
3d28f0981f bs4: Expose bs4.SoupStrainer and bs4.Tag (#7002) 2022-01-23 19:11:38 +02:00
Jelle Zijlstra
de5ec6a0d1 fix incorrect tuple[T] (#6996)
Found from PyCQA/flake8-pyi#135.
2022-01-22 09:37:14 -08:00
Alex Waygood
049a260acb Use class-based syntax for TypedDict in Flask-Cors/flask_cors/core.pyi (#6995)
Refs https://github.com/PyCQA/flake8-pyi/pull/133
2022-01-22 08:46:15 -08:00
kasium
57a854652a Add missing default values to flask-cors cross_origin (#6994) 2022-01-22 08:10:23 -08:00
kasium
6a273231f5 Add __getattr__ to flask-sqlalchemy (#6993)
The SQLAlchemy class exposes dynamically classes of SQLAlchemy. The exact classes depend on used SQLAlchemy version.
2022-01-22 08:10:10 -08:00
kasium
30133bb2fb Add stubs for flask-cors (#6939) 2022-01-22 07:14:55 -08:00
kasium
2bf7458091 Add stubs for invoke (#6938) 2022-01-21 20:44:26 -08:00
Sebastian Rittau
46159aeca3 Update SQLAlchemy stubs for 1.4.31 (#6990) 2022-01-21 18:10:25 -08:00
Lev
9b5011759f Add missing context manager stub for JACK Client (#6982)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-21 16:57:31 -08:00
kasium
3a22bf2411 Add stubs for Flask-SQLAlchemy (#6946) 2022-01-20 13:10:26 -08:00
Alex Waygood
76af72831a Use the Literal["foo", "bar"] syntax consistently (#6984) 2022-01-20 20:16:04 +02:00
Sebastian Rittau
fb6c9621d6 Update SQLAlchemy stubs for 1.4.30 (#6973) 2022-01-20 12:34:02 +02:00
Alex Waygood
aea52b35d1 Remove nearly all __str__ and __repr__ methods from typeshed (#6968) 2022-01-20 00:45:11 +01:00
Sebastian Rittau
5bf672ce42 Update redis stubs to 4.1.1 (#6960)
Closes: #6951
2022-01-19 07:05:15 -08:00
Jelle Zijlstra
a0d748de2f Revert "Temporarily fix redis version to 4.1.0" (#6957)
This reverts commit 7d2de33bba.
2022-01-18 15:09:19 -08:00
Alex Waygood
90d92aa0a5 Use _typeshed.Self in protobuf/google/protobuf/message.pyi (#6955) 2022-01-18 12:54:09 -08:00
Alex Waygood
cd93461225 Use PEP 585 syntax in @python2/_ast, convert more TypeVars to _typeshed.Self, & # noqa a SQLAlchemy line (#6954)
* Manual fixes for `_ast` and `SQLAlchemy`

* Change more `TypeVar`s to `Self`, using script
2022-01-18 11:15:34 -08:00
Alex Waygood
8af5e0d340 Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949) 2022-01-18 07:14:03 -08:00
Nipunn Koorapati
aa885ecd65 Flatten stubtest_allowlist for protobuf generated files (#6944)
I added stubtest testing for generated files within mypy-protobuf.
There are many ways in which the protobuf code is doing *weird*
things and we want the stubs to look a bit different. They're enumerated
in the `stubtest_allowlist.txt` of mypy-protobuf, so squashing them here
so that this one can focus on the non-generated files.
2022-01-18 06:58:48 -08:00
Sebastian Rittau
7d2de33bba Temporarily fix redis version to 4.1.0 (#6952)
Quick fix for #6951
2022-01-18 06:53:37 -08:00
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