Skip to content

Commit

Permalink
Remove ParamSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry committed Apr 15, 2024
1 parent 4576c4f commit 51ab743
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 187 deletions.
9 changes: 3 additions & 6 deletions cached_classproperty/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,17 @@
_NOT_FOUND = object()

if TYPE_CHECKING:
from typing import Any, Callable, ParamSpec, TypeVar

from typing_extensions import Concatenate
from typing import Any, Callable, TypeVar

T = TypeVar("T")
P = ParamSpec("P")

def cached_staticproperty(
func: Callable[Concatenate[P], T], attrname: Optional[str] = None
func: Callable[[], T], attrname: Optional[str] = None
) -> T:
...

def cached_classproperty(
func: Callable[Concatenate[Any, P], T], attrname: Optional[str] = None
func: Callable[[Any], T], attrname: Optional[str] = None
) -> T:
...

Expand Down
Loading

0 comments on commit 51ab743

Please sign in to comment.