Skip to content

Commit

Permalink
refactor: Remove _OrigFilterType
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Nov 4, 2024
1 parent 0d4ff86 commit be63d4e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions altair/vegalite/v5/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@
NamedData,
ParameterName,
PointSelectionConfig,
Predicate,
PredicateComposition,
ProjectionType,
RepeatMapping,
Expand Down Expand Up @@ -523,18 +522,6 @@ def check_fields_and_encodings(parameter: Parameter, field_name: str) -> bool:
]
"""Permitted types for `predicate`."""

# FIXME: Remove before merging
_OrigFilterType: TypeAlias = "str | Expr | Expression | Predicate | Parameter | PredicateComposition | dict[str, Predicate | str | list | bool]"
"""**Temporary** alias for ``transform_filter``'s original annotation.
Notes
-----
- Quite similar to ``_PredicateType``
- Probably some redundant typing, that can be reduced
- ``Predicate`` derives ``PredicateComposition``
- Includes all ``(Logical|Field|Parameter)...Predicate``
"""

_ComposablePredicateType: TypeAlias = Union[
_expr_core.OperatorMixin, core.PredicateComposition
]
Expand Down

0 comments on commit be63d4e

Please sign in to comment.