Skip to content

Commit

Permalink
chore: fix cyclical imports (#2353)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 13, 2025
1 parent b241f5b commit 7f83adf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/cloudflare/types/request_tracers/trace_create_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from typing import Optional

from .trace import Trace
from ..._compat import PYDANTIC_V2
from ..._models import BaseModel

Expand All @@ -15,8 +14,10 @@ class TraceCreateResponse(BaseModel):
status_code: Optional[int] = None
"""HTTP Status code of zone response"""

trace: Optional[Trace] = None
trace: Optional["Trace"] = None


from .trace import Trace

if PYDANTIC_V2:
TraceCreateResponse.model_rebuild()
Expand Down
2 changes: 1 addition & 1 deletion src/cloudflare/types/request_tracers/trace_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TraceItem(BaseModel):
step_name: Optional[str] = None
"""Tracing step identifying name"""

trace: Optional[Trace] = None
trace: Optional["Trace"] = None

type: Optional[str] = None
"""Tracing step type"""
Expand Down

0 comments on commit 7f83adf

Please sign in to comment.