Skip to content

Commit 8e41413

Browse files
committed
fix: Compatible python3.7,Remove Python Positional-Only Parameters
1 parent 529560d commit 8e41413

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

sqlalchemy_database/_abc_async_database.pyi

-8
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class AbcAsyncDatabase(metaclass=abc.ABCMeta):
1919
self,
2020
statement: Executable,
2121
params: Optional[_ExecuteParams] = None,
22-
/,
23-
*,
2422
execution_options: Optional[_ExecuteOptions] = None,
2523
bind_arguments: Optional[Mapping[str, Any]] = None,
2624
commit: bool = False,
@@ -32,8 +30,6 @@ class AbcAsyncDatabase(metaclass=abc.ABCMeta):
3230
self,
3331
statement: Executable,
3432
params: Optional[_ExecuteParams] = None,
35-
/,
36-
*,
3733
execution_options: Optional[_ExecuteOptions] = None,
3834
bind_arguments: Optional[Mapping[str, Any]] = None,
3935
**kw: Any,
@@ -43,8 +39,6 @@ class AbcAsyncDatabase(metaclass=abc.ABCMeta):
4339
self,
4440
statement: Executable,
4541
params: Optional[_ExecuteParams] = None,
46-
/,
47-
*,
4842
execution_options: Optional[_ExecuteOptions] = None,
4943
**kw: Any,
5044
) -> List[Any]: ...
@@ -53,8 +47,6 @@ class AbcAsyncDatabase(metaclass=abc.ABCMeta):
5347
self,
5448
entity: Type[_T],
5549
ident: Any,
56-
/,
57-
*,
5850
options: Optional[Sequence[Any]] = None,
5951
populate_existing: bool = False,
6052
with_for_update: Optional[Any] = None,

sqlalchemy_database/database.py

-16
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ async def execute(
3838
self,
3939
statement: Executable,
4040
params: Optional[_ExecuteParams] = None,
41-
/,
42-
*,
4341
execution_options: Optional[_ExecuteOptions] = None,
4442
bind_arguments: Optional[Mapping[str, Any]] = None,
4543
commit: bool = False,
@@ -58,8 +56,6 @@ async def scalar(
5856
self,
5957
statement: Executable,
6058
params: Optional[_ExecuteParams] = None,
61-
/,
62-
*,
6359
execution_options: Optional[_ExecuteOptions] = None,
6460
bind_arguments: Optional[Mapping[str, Any]] = None,
6561
**kw: Any,
@@ -77,8 +73,6 @@ async def scalars_all(
7773
self,
7874
statement: Executable,
7975
params: Optional[_ExecuteParams] = None,
80-
/,
81-
*,
8276
execution_options: Optional[_ExecuteOptions] = None,
8377
**kw: Any,
8478
) -> List[Any]:
@@ -95,8 +89,6 @@ async def get(
9589
self,
9690
entity: Type[_T],
9791
ident: Any,
98-
/,
99-
*,
10092
options: Optional[Sequence[Any]] = None,
10193
populate_existing: bool = False,
10294
with_for_update: Optional[Any] = None,
@@ -155,8 +147,6 @@ def execute(
155147
self,
156148
statement: Executable,
157149
params: Optional[_ExecuteParams] = None,
158-
/,
159-
*,
160150
execution_options: Optional[_ExecuteOptions] = None,
161151
bind_arguments: Optional[Mapping[str, Any]] = None,
162152
commit: bool = False,
@@ -175,8 +165,6 @@ def scalar(
175165
self,
176166
statement: Executable,
177167
params: Optional[_ExecuteParams] = None,
178-
/,
179-
*,
180168
execution_options: Optional[_ExecuteOptions] = None,
181169
bind_arguments: Optional[Mapping[str, Any]] = None,
182170
**kw: Any,
@@ -194,8 +182,6 @@ def scalars_all(
194182
self,
195183
statement: Executable,
196184
params: Optional[_ExecuteParams] = None,
197-
/,
198-
*,
199185
execution_options: Optional[_ExecuteOptions] = None,
200186
bind_arguments: Optional[Mapping[str, Any]] = None,
201187
**kw: Any,
@@ -213,8 +199,6 @@ def get(
213199
self,
214200
entity: Type[_T],
215201
ident: Any,
216-
/,
217-
*,
218202
options: Optional[Sequence[Any]] = None,
219203
populate_existing: bool = False,
220204
with_for_update: Optional[Any] = None,

0 commit comments

Comments
 (0)