Skip to content

Commit 1b7a906

Browse files
authored
fix-typos (#1524)
1 parent 1c70deb commit 1b7a906

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/customization/customizers/use_optional_params.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
`UseOptinalParams` is a customizer that allows to make your `Params` class fields optional.
1+
`UseOptionalParams` is a customizer that allows to make your `Params` class fields optional.
22
It will allow you to be able to select all available items in case if some of input parameters are not provided.
33

44
```py

docs/integrations/sqlalchemy/paginate.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
`fastapi_pagination.ext.sqlalchemy.paginate` allows you to paginate `sqlalchemy` queries easily.
22
It can work for both `sync` and `async` SQLAlchemy engines.
33

4-
`paginate` accepts the following `sqlachemy` related arguments:
4+
`paginate` accepts the following `sqlalchemy` related arguments:
55

66
* `conn` - can be either a `Connection` or `Session` object that allows you to execute the query.
77
* `query` - is the query that you want to paginate, it can be either a default select query, raw text query, or a from statement construction.
@@ -116,7 +116,7 @@ and page creation.
116116
* `"auto"` - will unwrap only in case if you are selecting single model.
117117
* `"legacy"` - will use old behavior, where row will be unwrapped if it contains only one element.
118118
* `"unwrap"` - will always unwrap row, even if it contains multiple elements.
119-
* `"no-unwrap"` - will never unwrap row, even if it contains only one element.
119+
* `"no-unwrap"` - will never unwrap row, even if it contains only one element.
120120

121121
```py
122122
from pydantic import BaseModel
@@ -139,7 +139,7 @@ class User(Base):
139139
id: Mapped[int] = mapped_column(default=None, primary_key=True)
140140
name: Mapped[str] = mapped_column()
141141

142-
142+
143143
class UserName(BaseModel):
144144
name: str
145145

fastapi_pagination/ext/databases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from .sqlalchemy import create_count_query, create_paginate_query
1919

2020

21-
def _to_mappins(items: Sequence[Any]) -> Sequence[Any]:
21+
def _to_mappings(items: Sequence[Any]) -> Sequence[Any]:
2222
return [{**item._mapping} for item in items]
2323

2424

@@ -35,7 +35,7 @@ async def apaginate(
3535
) -> Any:
3636
inner_transformer = None
3737
if convert_to_mapping:
38-
inner_transformer = _to_mappins
38+
inner_transformer = _to_mappings
3939

4040
return await run_async_flow(
4141
generic_flow(

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ ignore = [
120120
# single rule exclude
121121
"B008", # do not perform function calls in argument defaults
122122
"S101", # use of assert detected
123-
"SIM114", # allow have multiplie ifs with same body
123+
"SIM114", # allow have multiple ifs with same body
124124
"TRY003", # allow long exc message
125125
"RUF100", # allow unused noqa
126126
"RUF012", # allow mutable class var

0 commit comments

Comments
 (0)