Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into vega-datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Feb 5, 2025
2 parents 1b64392 + 0943ada commit 2bd89aa
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 47 deletions.
14 changes: 1 addition & 13 deletions altair/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from __future__ import annotations

from functools import wraps as _wraps
from typing import TYPE_CHECKING, Any
from typing import overload as _overload

Expand Down Expand Up @@ -89,14 +88,8 @@
from typing import LiteralString
else:
from typing_extensions import LiteralString
if sys.version_info >= (3, 10):
from typing import ParamSpec
else:
from typing_extensions import ParamSpec

from altair.utils.plugin_registry import Plugin

P = ParamSpec("P")

__all__ = [
"AreaConfigKwds",
Expand Down Expand Up @@ -246,12 +239,7 @@ def decorate(func: Plugin[ThemeConfig], /) -> Plugin[ThemeConfig]:
_register(name, func)
if enable:
_themes.enable(name)

@_wraps(func)
def wrapper(*args: P.args, **kwargs: P.kwargs) -> ThemeConfig:
return func(*args, **kwargs)

return wrapper
return func

return decorate

Expand Down
68 changes: 34 additions & 34 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2bd89aa

Please sign in to comment.