Skip to content

Commit 58d4b04

Browse files
committed
fix version problem
1 parent 1ace89b commit 58d4b04

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nest/core/decorators/http_method.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
from typing import Callable, List, Union, TypeVar, ParamSpec, TypeAlias
1+
from typing import Callable, List, Union, TypeVar, TypeAlias
22
from enum import Enum
3+
import sys
4+
5+
if sys.version_info >= (3, 10):
6+
from typing import ParamSpec
7+
else:
8+
from typing_extensions import ParamSpec
9+
310

411
P = ParamSpec("P")
512
R = TypeVar("R")

0 commit comments

Comments
 (0)