Avoid unnecessary forward refs in class definitions (#10124)
Mark SQLAlchemy stubs with ignore_missing_stub = false
(#9653)
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com
Fix all fixable stubtest_allowlist entries in SQLAlchemy (#9596)
Co-authored-by: Alex Waygood Alex.Waygood@Gmail.com Co-authored-by: Jelle Zijlstra jelle.zijlstra@gmail.com
Add defaults for third-party stubs Q-T (#9959)
[SQLAlchemy] Annotate row classes (#9568)
Co-authored-by: Avasam samuel.06@hotmail.com
Improve many __(a)exit__
annotations (#9696)
Update Unused
parameters in stubs/
(#9704)
-
Update _Unused TypeAlias
-
Update
object | None
params -
Replace unused
object
parameters withUnused
alias
Integrate requirements-stubtest.txt into METADATA.toml (#9778)
Stubtest settings: change ignore_missing_stub
default to false
(#9779)
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
Use typing_extensions.Self
instead of _typeshed.Self
(#9702)
Manual changes of Any
union to Incomplete
in stubs folder (#9566)
- ClassVar[Any | None]
- Missed previous changes due to alias
- Manual review of leftover Any unions (
| Any
andAny |
)
[stubsabot] Mark SQLAlchemy as obsolete since 2.0.0 (#9595)
Release: https://pypi.org/pypi/SQLAlchemy/2.0.0 Homepage: https://www.sqlalchemy.org
Replace Any
with Incomplete
in many places (#9565)
Replace Any
with Incomplete
in many places (#9558)
Fix stubtest for sqlalchemy.testing.plugin.pytestplugin (#9533)
SQLAlchemy: Annotate text() (#9498)
SQLAlchemy
: Remove some implementation details (#9492)
Stubs for the mypy plugin, which aren't useful if you're using typeshed's SQLAlchemy stubs, have been removed.
Update SQLAlchemy stubs to 1.4.46 (#9464)
Replace Any
with Incomplete
where applicable
Check for unused pyright: ignore
and differentiate from mypy ignores (#9397)
Update to SQLAlchemy 1.4.45 (#9359)
Use Incomplete in touched files
sqlalchemy: add return types for known magic methods (#9290)
Mark first argument of __[get|set|del]attr__
as str
(#9245)
Always use bool
and Literal
for Python compat code (#9213)
[stubsabot] Bump SQLAlchemy to 1.4.44 (#9182)
Release: https://pypi.org/pypi/SQLAlchemy/1.4.44 Homepage: https://www.sqlalchemy.org
If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR
Note that you will need to close and re-open the PR in order to trigger CI
Co-authored-by: stubsabot <>
All __nonzero__
are methods that return bool
(#9139)
Annotate known magic-method return types (#9131)
Fix and allow classes with missing metaclasses (#9136)
[stubsabot] Bump SQLAlchemy to 1.4.43 (#9092)
Release: https://pypi.org/pypi/SQLAlchemy/1.4.43 Homepage: https://www.sqlalchemy.org
Fix stubtest failures on SQLAlchemy
(#8914)
Remove empty __init__
methods from classes with 0 parents (#8907)
Bump mypy to 0.981 (#8796)
Reexport NoResultFound in orm/exc (#8782)
SQLAlchemy
: Use ParamSpec
for Engine.transaction()
and Engine.run_callable()
(#8718)
Fix stubtest failures on SQLAlchemy
(#8524)
Remove or move several TypeAlias
declarations (#8444)
Fix TODO RE: Use of Concatenate
and ParamSpec
in sqlalchemy (#8415)
SQLAlchemy: Fix annotations for Query.{update,delete} (#8388)
Closes: #8387
Third-party stubs: enforce CamelCase for type alias names (#8256)
Co-authored-by: Jelle Zijlstra jelle.zijlstra@gmail.com
Use error codes for type ignores (#8280)
Disable reportSelfClsParameterName for pytype as this is out of typeshed's control
Closes: #7497
Remove Python 3.6 branches from typeshed (#8269)
Add Session annotation for sessionmaker call (#8257)
Improve SQLAlchemy
type aliases (#8252)
- Remove
sqlalchemy.dbapi
(in favor of_typeshed.dbapi
). - Don't re-export mypy imports from
sqlalchemy.ext.mypy.*
.
Fix stubtest failures on SQLAlchemy
(#8148)
Improve several __hash__
methods (#8128)
Upgrade pyright, improve pyright config files (#8072)
Fix TypeVar
s in beautifulsoup
and SQLAlchemy
(#8087)
Always use TypeAlias
when assigning to Any
(#8021)
SQLAlchemy 1.4.37 fixes (#8003)
Closes: #8001
constructors: Fix defaulted TypeVars (#7965)
From the list in microsoft/pyright#3501
Third-party stubs: fix several fictitious type aliases (#7958)
Update testing_engine() annotations (#7818)
Import generics from standard modules in all third-party stubs (#7791)
Add various missing generic arguments (#7702)
Co-authored-by: Akuli akuviljanen17@gmail.com
Add typing for iter in sqlalchemy.orm.Query (#7666)
Third-party stubs: import from collections.abc
where possible (#7637)
Use TypeAlias
where possible for type aliases (#7630)
SQLAlchemy improvements for Operators (#7604)
SQLAlchemy improvements for generative methods (#7603)
Mark many attributes as read-only properties (#7591)
Update SQLalchemy to 1.4.34 (#7573)
Closes: #7572
Remove unneeded # noqa
comments, fix broken # noqa
comments (#7561)
Add mypy error codes to type: ignore
s, remove unused ignores (#7504)
Co-authored-by: Jelle Zijlstra jelle.zijlstra@gmail.com
pyright: Don't report incompatible overrides (#7498)
These overrides are inherited from the implementation and are out of typeshed's control.
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
sqlalchemy: Annotate (Async)Session.__(a)enter__
(#7488)
Re-enable stubtest on SQLAlchemy (#7456)
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.
Annotate Session.execute() and Result (#7252)
-
Annotate return type of Session.execute()
-
Annotate Result return types
-
Remove sub-class overrides with identical signatures
Various SQLalchemy type improvements (#7238)
- Make ColumnOperators and ColumnElement generic
- Overload Session.query() return type
- Annotate ColumnOperators methods
Various SQLalchemy fixes and improvements (#7237)
Upgrade black version (#7089)
Update SQLAlchemy stubs for 1.4.31 (#6990)
Update SQLAlchemy stubs for 1.4.30 (#6973)
Use PEP 585 syntax in @python2/_ast
, convert more TypeVar
s to _typeshed.Self
, & # noqa
a SQLAlchemy
line (#6954)
-
Manual fixes for
_ast
andSQLAlchemy
-
Change more
TypeVar
s toSelf
, using script
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
Further annotate sqlalchemy.engine and collections (#6680)
Use lowercase type
everywhere (#6853)
Update pyright (#6840)
Add execution_options to Session.get() (#6656)
Co-authored-by: Jelle Zijlstra jelle.zijlstra@gmail.com
Fix third-party issues found by stubtest (#6667)
Various small SQLAlchemy type improvements (#6623)
SQLAlchemy: Partly annotate declarative API (#6647)
Create SQLalchemy stubs using stubgen (#6585)