Skip to content

Commit

Permalink
Fix invalid 3.9 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jlowin committed Nov 12, 2024
1 parent 0b0c9fb commit afe44ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controlflow/handlers/print_handler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import datetime
from typing import Optional
from typing import Optional, Union

import rich
from pydantic import BaseModel
Expand Down Expand Up @@ -93,7 +93,7 @@ class ToolState(DisplayState):
is_complete: bool = False
tool: Optional[Tool] = None

def get_status_style(self) -> tuple[str | Spinner, str, str]:
def get_status_style(self) -> tuple[Union[str, Spinner], str, str]:
"""Returns (icon, text style, border style) for current status."""
if self.is_complete:
if self.is_error:
Expand Down

0 comments on commit afe44ad

Please sign in to comment.