Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjinliu committed Oct 4, 2024
1 parent 51f13bd commit c381b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whitecanvas/_axis.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

from abc import ABC, abstractmethod
from typing import Any, Generic, SupportsIndex, TypeVar
from typing import Any, Generic, SupportsIndex, TypeVar, Union

_T = TypeVar("_T")

Expand Down Expand Up @@ -66,7 +66,7 @@ def set_size(self, size: int):
self._value = min(self._value, size - 1)


Category = tuple[int | str, ...]
Category = tuple[Union[int, str], ...]


class CategoricalAxis(DimAxis[Category]):
Expand Down

0 comments on commit c381b59

Please sign in to comment.