Andrey
b145b32aa9
Add Session annotation for sessionmaker call ( #8257 )
2022-07-08 10:31:36 +01:00
Alex Waygood
850bc78a45
Improve SQLAlchemy type aliases ( #8252 )
...
* Remove `sqlalchemy.dbapi` (in favor of `_typeshed.dbapi`).
* Don't re-export mypy imports from `sqlalchemy.ext.mypy.*`.
2022-07-07 14:11:08 +02:00
Alex Waygood
b550d463c7
Fix stubtest failures on SQLAlchemy ( #8148 )
2022-06-25 11:34:47 +05:30
Alex Waygood
89f4dee452
Improve several __hash__ methods ( #8128 )
2022-06-22 11:58:00 +01:00
Alex Waygood
6b0c8df9ec
Upgrade pyright, improve pyright config files ( #8072 )
2022-06-16 18:50:50 +01:00
Alex Waygood
a2ef47660a
Fix TypeVars in beautifulsoup and SQLAlchemy ( #8087 )
2022-06-16 17:34:27 +02:00
Alex Waygood
43a9ab08d7
Always use TypeAlias when assigning to Any ( #8021 )
2022-06-05 18:16:20 -07:00
Sebastian Rittau
07ac9675e4
SQLAlchemy 1.4.37 fixes ( #8003 )
...
Closes : #8001
2022-06-01 09:50:40 +01:00
Jelle Zijlstra
789c12ad90
constructors: Fix defaulted TypeVars ( #7965 )
...
From the list in https://github.com/microsoft/pyright/issues/3501
2022-05-27 07:32:56 +01:00
Alex Waygood
fa636bc044
Third-party stubs: fix several fictitious type aliases ( #7958 )
2022-05-26 06:26:26 -07:00
Sebastian Rittau
b211bf31a3
Update testing_engine() annotations ( #7818 )
2022-05-10 12:46:01 +03:00
Alex Waygood
5c6178a821
Import generics from standard modules in all third-party stubs ( #7791 )
2022-05-07 10:35:50 +02:00
Sebastian Rittau
2d468966f5
Add various missing generic arguments ( #7702 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-04-27 15:25:35 +03:00
Andrey
4a701642f2
Add typing for __iter__ in sqlalchemy.orm.Query ( #7666 )
2022-04-20 10:55:12 +01:00
Alex Waygood
653f2c6ba4
Third-party stubs: import from collections.abc where possible ( #7637 )
2022-04-16 14:52:57 +01:00
Alex Waygood
740193a8fc
Use TypeAlias where possible for type aliases ( #7630 )
2022-04-15 18:01:00 -07:00
hasier
21171f1cb9
SQLAlchemy improvements for Operators ( #7604 )
2022-04-07 19:45:27 +02:00
hasier
754f421990
SQLAlchemy improvements for generative methods ( #7603 )
2022-04-07 13:06:46 +02:00
Alex Waygood
85aec034ae
Mark many attributes as read-only properties ( #7591 )
2022-04-05 08:37:24 +02:00
Sebastian Rittau
4c9dc43c87
Update SQLalchemy to 1.4.34 ( #7573 )
...
Closes : #7572
2022-04-01 14:22:00 +01:00
Alex Waygood
a3245db63c
Remove unneeded # noqa comments, fix broken # noqa comments ( #7561 )
2022-03-28 23:17:44 +02:00
Alex Waygood
340c6c97ed
Add mypy error codes to type: ignores, remove unused ignores ( #7504 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-03-19 13:10:00 +00:00
Sebastian Rittau
108b6fb091
pyright: Don't report incompatible overrides ( #7498 )
...
These overrides are inherited from the implementation and are out of
typeshed's control.
2022-03-16 16:20:06 +01:00
Alex Waygood
15e21a8dc1
Use pyright 1.1.230 in CI, temporarily pin pyright-action to 1.0.4 ( #7495 )
...
* Upgrade pyright to 1.1.230
* Add `type: ignore`s for new pyright checks regarding multiple inheritance
* Temporarily pin pyright-action to 1.0.4, as changes made in 1.0.5 break typeshed's CI
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-03-16 14:24:55 +00:00
Joseph Young
860db6f6c4
sqlalchemy: Annotate (Async)Session.__(a)enter__ ( #7488 )
2022-03-14 15:15:32 +00:00
Shantanu
9c737f1326
Re-enable stubtest on SQLAlchemy ( #7456 )
2022-03-09 07:34:12 +01:00
Sebastian Rittau
ae39348d7a
Annotate Session.execute() and Result ( #7252 )
...
* Annotate return type of Session.execute()
* Annotate Result return types
* Remove sub-class overrides with identical signatures
2022-02-17 09:27:55 -08:00
Sebastian Rittau
4a0dabda1b
Various SQLalchemy type improvements ( #7238 )
...
* Make ColumnOperators and ColumnElement generic
* Overload Session.query() return type
* Annotate ColumnOperators methods
2022-02-16 19:03:48 -08:00
Sebastian Rittau
44bcf5eed0
Various SQLalchemy fixes and improvements ( #7237 )
2022-02-16 06:46:11 -08:00
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: 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
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