Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport master] Set more precise type for filter_column #489

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions 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 @@ -99,8 +100,8 @@ def __init__(
key: Optional[str] = None,
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,
sort_column: Optional[sqlalchemy.sql.elements.ColumnElement[Any]] = None,
filter_column: Optional[sqlalchemy.sql.elements.ColumnElement[Any]] = None,
visible: bool = True,
):
self._attr = _getattr(model, attr)
Expand Down
Loading