Skip to content

Commit 4575181

Browse files
committed
fixed failing test
1 parent 31adab1 commit 4575181

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+20
-29
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ lint:fmt ## Run code linters
2525
mypy ellar_sql
2626

2727
fmt format:clean ## Run code formatters
28-
ruff format ellar_sql tests examples
29-
ruff check --fix ellar_sql tests examples
28+
ruff format ellar_sql tests samples
29+
ruff check --fix ellar_sql tests samples
3030

3131
test:clean ## Run tests
3232
pytest

ellar_sql/model/base.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,11 @@ class ModelBase(ModelDataExportMixin):
157157

158158
__table_args__: t.Any
159159

160-
def __init__(self, **kwargs: t.Any) -> None:
161-
...
160+
def __init__(self, **kwargs: t.Any) -> None: ...
162161

163-
def _sa_inspect_type(self) -> sa.Mapper["ModelBase"]:
164-
...
162+
def _sa_inspect_type(self) -> sa.Mapper["ModelBase"]: ...
165163

166-
def _sa_inspect_instance(self) -> sa.InstanceState["ModelBase"]:
167-
...
164+
def _sa_inspect_instance(self) -> sa.InstanceState["ModelBase"]: ...
168165

169166
@classmethod
170167
def get_db_session(

ellar_sql/model/table.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ def __init__(
3030
*args: sa_sql_schema.SchemaItem,
3131
__database__: t.Optional[str] = None,
3232
**kwargs: t.Any,
33-
) -> None:
34-
...
33+
) -> None: ...
3534

3635
@t.overload
3736
def __init__(
@@ -40,14 +39,12 @@ def __init__(
4039
metadata: sa.MetaData,
4140
*args: sa_sql_schema.SchemaItem,
4241
**kwargs: t.Any,
43-
) -> None:
44-
...
42+
) -> None: ...
4543

4644
@t.overload
4745
def __init__(
4846
self, name: str, *args: sa_sql_schema.SchemaItem, **kwargs: t.Any
49-
) -> None:
50-
...
47+
) -> None: ...
5148

5249
def __init__(
5350
self, name: str, *args: sa_sql_schema.SchemaItem, **kwargs: t.Any

ellar_sql/pagination/view.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ def pagination_context(
6565

6666
if t.TYPE_CHECKING:
6767

68-
def __init__(self, **kwargs: t.Any) -> None:
69-
...
68+
def __init__(self, **kwargs: t.Any) -> None: ...
7069

7170

7271
class PageNumberPagination(PaginationBase):

requirements.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
-e .[all]
1+
22
-r requirements-docs.txt
33
-r requirements-tests.txt
44

5-
aiomcache
6-
75
pre-commit >=2.17.0,<4.0.0
8-
pylibmc
9-
pymemcache
10-
redis

examples/db-learning/db_learning/config.py renamed to samples/db-learning/db_learning/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ class BaseConfig(ConfigDefaultTypesMixin):
6161
EXCEPTION_HANDLERS: t.List[IExceptionHandler] = []
6262

6363
# Object Serializer custom encoders
64-
SERIALIZER_CUSTOM_ENCODER: t.Dict[
65-
t.Any, t.Callable[[t.Any], t.Any]
66-
] = encoders_by_type
64+
SERIALIZER_CUSTOM_ENCODER: t.Dict[t.Any, t.Callable[[t.Any], t.Any]] = (
65+
encoders_by_type
66+
)
6767

6868

6969
class DevelopmentConfig(BaseConfig):

0 commit comments

Comments
 (0)