Skip to content

Commit

Permalink
Set more precise type for filter_column
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 4, 2024
1 parent 9a50bd8 commit a247c3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c2cgeoform/views/abstract_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import sqlalchemy.orm.attributes
import sqlalchemy.orm.properties
import sqlalchemy.schema
import sqlalchemy.sql.elements
import sqlalchemy.sql.expression
from deform import Form, ValidationFailure # , ZPTRendererFactory
from deform.form import Button
Expand Down Expand Up @@ -100,7 +101,7 @@ def __init__(
label: Optional[str] = None,
renderer: Optional[Callable[[T], JSONDict]] = None,
sort_column: Optional[sqlalchemy.sql.expression.ColumnElement[Any]] = None,
filter_column: Optional[sqlalchemy.schema.Column[Any]] = None,
filter_column: Optional[sqlalchemy.sql.elements.SQLCoreOperations[Any]] = None,
visible: bool = True,
):
self._attr = _getattr(model, attr)
Expand Down

0 comments on commit a247c3b

Please sign in to comment.