Skip to content

Commit

Permalink
fix: Resolve pre-3.11 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Sep 2, 2024
1 parent 044a814 commit fb1fe81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion altair/utils/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@

WrapsFunc = TypeAliasType("WrapsFunc", Callable[..., R], type_params=(R,))
WrappedFunc = TypeAliasType("WrappedFunc", Callable[P, R], type_params=(P, R))
# NOTE: Requires stringized form to avoid `< (3, 11)` issues
# See: https://github.com/vega/altair/actions/runs/10667859416/job/29567290871?pr=3565
WrapsMethod = TypeAliasType(
"WrapsMethod", Callable[Concatenate[T, ...], R], type_params=(T, R)
"WrapsMethod", "Callable[Concatenate[T, ...], R]", type_params=(T, R)
)
WrappedMethod = TypeAliasType(
"WrappedMethod", Callable[Concatenate[T, P], R], type_params=(T, P, R)
Expand Down

0 comments on commit fb1fe81

Please sign in to comment.