Skip to content

Commit

Permalink
fix: drop type subscript, not available in earlier versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed May 26, 2024
1 parent 78d1a7c commit 8cd40e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions altair/utils/plugin_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


PluginType = TypeVar("PluginType")
T = TypeVar("T", bound=Callable)


class NoSuchEntryPoint(Exception):
Expand Down Expand Up @@ -71,7 +70,7 @@ class PluginRegistry(Generic[PluginType]):
# in the registry rather than passed to the plugins
_global_settings = {} # type: Dict[str, Any]

def __init__(self, entry_point_group: str = "", plugin_type: type[T] = Callable): # type: ignore[assignment]
def __init__(self, entry_point_group: str = "", plugin_type: type = Callable): # type: ignore[assignment]
"""Create a PluginRegistry for a named entry point group.
Parameters
Expand Down

0 comments on commit 8cd40e2

Please sign in to comment.