Skip to content

Commit

Permalink
Fix union type
Browse files Browse the repository at this point in the history
  • Loading branch information
adagora committed Nov 27, 2023
1 parent d1c0efe commit 8f5c14c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion solarathon/pages/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import logging
import sys
from typing import Union

# root = logging.getLogger()
# root.setLevel(logging.DEBUG)
Expand Down Expand Up @@ -76,7 +77,7 @@ def get_binance_ticket(symbol: str) -> TickerData:


@solara.component
def DashboardCard(symbol: str, icon: solara.Element | str = None, market_cap: Optional[str] = None, market_cap_change_percentage: Optional[str] = None, pending: Optional[bool] = False):
def DashboardCard(symbol: str, icon: Union[solara.Element, str] = None, market_cap: Optional[str] = None, market_cap_change_percentage: Optional[str] = None, pending: Optional[bool] = False):
ticker_data, set_ticker_data = solara.use_state(
cast(Optional[TickerData], None)
)
Expand Down

0 comments on commit 8f5c14c

Please sign in to comment.