Commit Graph

13 Commits

Author SHA1 Message Date
Shantanu b88a6f19cd Upgrade black version (#7089) 2022-01-30 16:27:06 -08:00
Sebastian Rittau 46159aeca3 Update SQLAlchemy stubs for 1.4.31 (#6990) 2022-01-21 18:10:25 -08:00
Sebastian Rittau fb6c9621d6 Update SQLAlchemy stubs for 1.4.30 (#6973) 2022-01-20 12:34:02 +02: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 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: https://github.com/tox-dev/py-filelock/blob/79ec7b2826e33b982fe83b057f359448b9d966ba/src/filelock/_api.py#L207

* Improve `opentracing/scope` annotation

Source code here: https://github.com/opentracing/opentracing-python/blob/3e1d357a348269ef54d67f761302fab93dbfc0f7/opentracing/scope.py#L71

* Improve `redis/client` stub

Source code here: https://github.com/redis/redis-py/blob/15f315a496c3267c8cbcc6d6d9c6005ea4d4a4d5/redis/client.py#L1217

* Improve `redis/lock` annotation

Source code here: https://github.com/redis/redis-py/blob/15f315a496c3267c8cbcc6d6d9c6005ea4d4a4d5/redis/lock.py#L155

* Improve `requests/models` annotation

Source code here: https://github.com/psf/requests/blob/d718e753834b84018014a23d663369ac27d1ab9c/requests/models.py#L653
2022-01-09 19:16:19 -08:00
Sebastian Rittau 67c5d73cdb Further annotate sqlalchemy.engine and collections (#6680) 2022-01-09 15:20:17 +02:00
Alex Waygood a40d79a4e6 Use lowercase type everywhere (#6853) 2022-01-08 16:09:29 +01:00
Sebastian Rittau e77a66aced Update pyright (#6840) 2022-01-07 18:58:15 +02:00
Sebastian Rittau aa329b248b Add execution_options to Session.get() (#6656)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-12-23 12:37:02 +02:00
Sebastian Rittau 9bf2ceb963 Fix third-party issues found by stubtest (#6667) 2021-12-22 15:09:44 -08:00
Sebastian Rittau 426ce065b2 Various small SQLAlchemy type improvements (#6623) 2021-12-22 07:49:20 -08:00
Sebastian Rittau ef17852999 SQLAlchemy: Partly annotate declarative API (#6647) 2021-12-21 07:40:37 -08:00
Sebastian Rittau 6f2ff7e895 Create SQLalchemy stubs using stubgen (#6585) 2021-12-17 09:38:23 -08:00