We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 253b1dd commit 5c5cb96Copy full SHA for 5c5cb96
fastapi_utils/cbv.py
@@ -1,4 +1,6 @@
1
+import functools
2
import inspect
3
+import sys
4
from typing import (
5
Any,
6
Callable,
@@ -16,6 +18,9 @@
16
18
from fastapi.routing import APIRoute
17
19
from starlette.routing import Route, WebSocketRoute
20
21
+if sys.version_info >= (3, 9, 0):
22
+ get_type_hints = functools.partial(get_type_hints, include_extras=True)
23
+
24
PYDANTIC_VERSION = pydantic.VERSION
25
if PYDANTIC_VERSION[0] == "2":
26
from typing_inspect import is_classvar
0 commit comments