Skip to content

Commit

Permalink
Remove 3.10 union syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaveMyYard committed Jul 5, 2023
1 parent 96a626c commit 914bfcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions robusta_krr/utils/configurable.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import abc
from inspect import getframeinfo, stack
from typing import Literal
from typing import Literal, Union

from rich.console import Console

Expand Down Expand Up @@ -93,7 +93,7 @@ def warning(self, message: str = "") -> None:

self.echo(message, type="WARNING")

def error(self, message: str | Exception = "") -> None:
def error(self, message: Union[str, Exception] = "") -> None:
"""
Echoes an error message to the user
"""
Expand Down

0 comments on commit 914bfcb

Please sign in to comment.