We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f68f721 commit da884ffCopy full SHA for da884ff
src/cloudflare/types/request_tracers/trace.py
@@ -2,11 +2,16 @@
2
3
from __future__ import annotations
4
5
-from typing import List
6
-from typing_extensions import TypeAliasType
+from typing import TYPE_CHECKING, List
+from typing_extensions import TypeAlias, TypeAliasType
7
+
8
+from ..._compat import PYDANTIC_V2
9
10
__all__ = ["Trace"]
11
-Trace = TypeAliasType('Trace', List["TraceItem"])
12
+if TYPE_CHECKING or PYDANTIC_V2:
13
+ Trace = TypeAliasType('Trace', List["TraceItem"])
14
+else:
15
+ Trace: TypeAlias = List["TraceItem"]
16
17
from .trace_item import TraceItem
0 commit comments