Skip to content

Commit 0943ada

Browse files
authored
ci(uv): bump mypy==1.15.0 (#3790)
1 parent 7fce53d commit 0943ada

File tree

2 files changed

+35
-47
lines changed

2 files changed

+35
-47
lines changed

altair/theme.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
from functools import wraps as _wraps
65
from typing import TYPE_CHECKING, Any
76
from typing import overload as _overload
87

@@ -89,14 +88,8 @@
8988
from typing import LiteralString
9089
else:
9190
from typing_extensions import LiteralString
92-
if sys.version_info >= (3, 10):
93-
from typing import ParamSpec
94-
else:
95-
from typing_extensions import ParamSpec
96-
9791
from altair.utils.plugin_registry import Plugin
9892

99-
P = ParamSpec("P")
10093

10194
__all__ = [
10295
"AreaConfigKwds",
@@ -246,12 +239,7 @@ def decorate(func: Plugin[ThemeConfig], /) -> Plugin[ThemeConfig]:
246239
_register(name, func)
247240
if enable:
248241
_themes.enable(name)
249-
250-
@_wraps(func)
251-
def wrapper(*args: P.args, **kwargs: P.kwargs) -> ThemeConfig:
252-
return func(*args, **kwargs)
253-
254-
return wrapper
242+
return func
255243

256244
return decorate
257245

uv.lock

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)