Skip to content

Commit

Permalink
fix: Use 3.8 compatible typing.Callable over collections.abc
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed May 26, 2024
1 parent 8cd40e2 commit 8bfaf41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions altair/utils/_vegafusion_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import uuid
from weakref import WeakValueDictionary

from typing import (
Any,
Literal,
Expand All @@ -13,8 +12,8 @@
Final,
TYPE_CHECKING,
overload,
Callable,
)
from collections.abc import Callable

from altair.utils._importers import import_vegafusion
from altair.utils.core import DataFrameLike
Expand Down
3 changes: 1 addition & 2 deletions altair/utils/plugin_registry.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from functools import partial
from typing import Any, Dict, List, Optional, Generic, TypeVar, Union, cast
from typing import Any, Dict, List, Optional, Generic, TypeVar, Union, cast, Callable
from types import TracebackType
from collections.abc import Callable
from importlib.metadata import entry_points


Expand Down
3 changes: 1 addition & 2 deletions altair/vegalite/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
from ..utils.data import DataTransformerRegistry as _DataTransformerRegistry
from ..utils.data import DataType, ToValuesReturnType
from ..utils.plugin_registry import PluginEnabler
from typing import Optional, Literal, Union, overload
from collections.abc import Callable
from typing import Optional, Literal, Union, overload, Callable


@overload
Expand Down

0 comments on commit 8bfaf41

Please sign in to comment.