@@ -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
0 commit comments