Skip to content

Commit 4a611dd

Browse files
committed
fix: shift type definitions to stub file
- typing uses ParamSpec whis is supported for Python 3.10+
1 parent bba4b29 commit 4a611dd

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed
+1-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
from typing import Callable, ParamSpec
2-
3-
P = ParamSpec("P")
4-
5-
6-
def expect_override(func: Callable[P, bool | None]) -> Callable[P, bool | None]:
1+
def expect_override(func):
72
setattr(func, "expect_override", True)
83
return func
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from typing import Callable, ParamSpec
2+
3+
P = ParamSpec("P")
4+
5+
6+
def expect_override(func: Callable[P, bool | None]) -> Callable[P, bool | None]: ...

0 commit comments

Comments
 (0)