Skip to content

Commit 4c9dc43

Browse files
authored
Update SQLalchemy to 1.4.34 (#7573)
Closes: #7572
1 parent ae6ff79 commit 4c9dc43

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

stubs/SQLAlchemy/sqlalchemy/engine/base.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class Engine(Connectable, Identified):
172172
def name(self) -> str: ...
173173
@property
174174
def driver(self): ...
175-
def dispose(self) -> None: ...
175+
def dispose(self, close: bool = ...) -> None: ...
176176

177177
class _trans_ctx:
178178
conn: Connection

stubs/SQLAlchemy/sqlalchemy/orm/util.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,11 @@ def with_polymorphic(
126126
flat: bool = ...,
127127
polymorphic_on: Any | None = ...,
128128
aliased: bool = ...,
129+
adapt_on_names: bool = ...,
129130
innerjoin: bool = ...,
130131
_use_mapper_path: bool = ...,
131132
_existing_alias: Any | None = ...,
132-
): ...
133+
) -> AliasedClass: ...
133134

134135
class Bundle(ORMColumnsClauseRole, SupportsCloneAnnotations, sql_base.MemoizedHasCacheKey, InspectionAttr):
135136
single_entity: bool

stubs/SQLAlchemy/sqlalchemy/sql/functions.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ from typing import Any
33
from ..util import HasMemoized
44
from .base import Executable, Generative
55
from .elements import BinaryExpression, ColumnElement, NamedColumn
6-
from .selectable import FromClause
6+
from .selectable import FromClause, TableValuedAlias
77
from .visitors import TraversibleType
88

99
def register_function(identifier, fn, package: str = ...) -> None: ...
@@ -28,7 +28,7 @@ class FunctionElement(Executable, ColumnElement[Any], FromClause, Generative):
2828
def filter(self, *criterion): ...
2929
def as_comparison(self, left_index, right_index): ...
3030
def within_group_type(self, within_group) -> None: ...
31-
def alias(self, name: Any | None = ...): ... # type: ignore[override]
31+
def alias(self, name: str | None = ..., joins_implicitly: bool = ...) -> TableValuedAlias: ... # type: ignore[override]
3232
def select(self): ...
3333
def scalar(self): ...
3434
def execute(self): ...

stubs/SQLAlchemy/sqlalchemy/testing/engines.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def testing_engine(
4343
future: Any | None = ...,
4444
asyncio: bool = ...,
4545
transfer_staticpool: bool = ...,
46+
_sqlite_savepoint: bool = ...,
4647
): ...
4748
def mock_engine(dialect_name: Any | None = ...): ...
4849

0 commit comments

Comments
 (0)