Nikita Sobolev
62a6c3d616
Annotate known magic-method return types ( #9131 )
2022-11-08 18:28:42 +00:00
Nikita Sobolev
c0e9038f0d
Fix and allow classes with missing metaclasses ( #9136 )
2022-11-08 18:13:59 +00:00
github-actions[bot]
4329404b1c
[stubsabot] Bump SQLAlchemy to 1.4.43 ( #9092 )
...
Release: https://pypi.org/pypi/SQLAlchemy/1.4.43
Homepage: https://www.sqlalchemy.org
2022-11-05 00:40:39 +00:00
Alex Waygood
2b5afd9cc9
Fix stubtest failures on SQLAlchemy ( #8914 )
2022-10-17 12:43:52 +02:00
Nikita Sobolev
3e828bd307
Remove empty __init__ methods from classes with 0 parents ( #8907 )
2022-10-16 12:47:47 +01:00
Alex Waygood
48e76e8a56
Bump mypy to 0.981 ( #8796 )
2022-09-26 17:14:33 -07:00
kasium
66751e2ebf
Reexport NoResultFound in orm/exc ( #8782 )
2022-09-22 11:57:29 +02:00
Nikita Sobolev
43d4174590
SQLAlchemy: Use ParamSpec for Engine.transaction() and Engine.run_callable() (#8718 )
2022-09-10 16:29:54 +01:00
Alex Waygood
f2283d519e
Fix stubtest failures on SQLAlchemy ( #8524 )
2022-08-10 11:48:46 -07:00
Alex Waygood
fdeb216547
Remove or move several TypeAlias declarations ( #8444 )
2022-07-30 15:28:52 +01:00
Kevin Kirsche
16e44d560f
Fix TODO RE: Use of Concatenate and ParamSpec in sqlalchemy ( #8415 )
2022-07-27 20:00:43 -07:00
Aksel Lunde Aase
e853d5608e
SQLAlchemy: Fix annotations for Query.{update,delete} ( #8388 )
...
Closes : #8387
2022-07-26 11:21:10 +02:00
Alex Waygood
e3d4bdc91a
Third-party stubs: enforce CamelCase for type alias names ( #8256 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-07-19 08:23:24 +01:00
Sebastian Rittau
faae950ade
Use error codes for type ignores ( #8280 )
...
Disable reportSelfClsParameterName for pytype as this is out of typeshed's
control
Closes : #7497
2022-07-12 20:15:49 +02:00
Alex Waygood
edc0ecd857
Remove Python 3.6 branches from typeshed ( #8269 )
2022-07-11 10:55:17 +02:00
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
7a81bd41e9
Re-introduce the 'stubtest' key for third-party packages ( #7351 )
...
Some distributions can't be tested with stubtest for a variety of
reasons or because of bugs in stubtest. This key:
* let's us keep metadata about a distribution in one place,
* prevents us from modifying the scripts because of issues with a
specific distribution, and
* will trigger tests if only the key is changed.
2022-02-22 15:59:27 +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