Skip to content

Commit fd781b2

Browse files
committed
chore(release): bump to v0.27.1
1 parent fc76936 commit fd781b2

File tree

3 files changed

+11
-37
lines changed

3 files changed

+11
-37
lines changed

advanced_alchemy/filters.py

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -143,27 +143,20 @@ class BeforeAfter(StatementFilter):
143143
This filter creates date/time range conditions using < and > operators,
144144
excluding the boundary values.
145145
146-
Parameters
147-
----------
148-
field_name : str
149-
Name of the model attribute to filter on
150-
before : datetime | None
151-
Filter results where field is earlier than this value
152-
after : datetime | None
153-
Filter results where field is later than this value
154-
155-
Note:
156-
-----
157-
If either `before` or `after` is None, that boundary condition is not applied.
146+
If either `before` or `after` is None, that boundary condition is not applied.
158147
159148
See Also:
160149
---------
161150
:class:`OnBeforeAfter` : Inclusive datetime range filtering
151+
162152
"""
163153

164154
field_name: str
155+
"""Name of the model attribute to filter on."""
165156
before: datetime | None
157+
"""Filter results where field is earlier than this value."""
166158
after: datetime | None
159+
"""Filter results where field is later than this value."""
167160

168161
def append_to_statement(self, statement: StatementTypeT, model: type[ModelT]) -> StatementTypeT:
169162
"""Apply datetime range conditions to statement.
@@ -195,32 +188,13 @@ class OnBeforeAfter(StatementFilter):
195188
This filter creates date/time range conditions using <= and >= operators,
196189
including the boundary values.
197190
198-
Parameters
199-
----------
200-
field_name : str
201-
Name of the model attribute to filter on
202-
on_or_before : datetime | None
203-
Filter results where field is on or earlier than this value
204-
on_or_after : datetime | None
205-
Filter results where field is on or later than this value
206-
207-
Example:
208-
-------
209-
>>> filter = OnBeforeAfter(
210-
... field_name="updated_at",
211-
... on_or_before=datetime(2024, 1, 1),
212-
... on_or_after=datetime(2023, 1, 1),
213-
... )
214-
>>> statement = filter.append_to_statement(select(Model), Model)
215-
216-
Note:
217-
----
218191
If either `on_or_before` or `on_or_after` is None, that boundary condition
219192
is not applied.
220193
221194
See Also:
222-
--------
223-
:class:`BeforeAfter` : Exclusive datetime range filtering
195+
---------
196+
:class:`BeforeAfter` : Exclusive datetime range filtering
197+
224198
"""
225199

226200
field_name: str

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ maintainers = [
4747
name = "advanced_alchemy"
4848
readme = "README.md"
4949
requires-python = ">=3.8"
50-
version = "0.27.0"
50+
version = "0.27.1"
5151

5252
[project.urls]
5353
Changelog = "https://docs.advanced-alchemy.litestar.dev/latest/changelog"
@@ -166,7 +166,7 @@ test = [
166166
allow_dirty = true
167167
commit = true
168168
commit_args = "--no-verify"
169-
current_version = "0.26.2"
169+
current_version = "0.27.1"
170170
ignore_missing_files = false
171171
ignore_missing_version = false
172172
message = "chore(release): bump to v{new_version}"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)