Skip to content

Commit

Permalink
Use black from python env for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
evangriffiths committed Feb 6, 2024
1 parent d78c476 commit 31bbfc2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions prediction_market_agent/markets/all_markets.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,22 @@ def get_bet_amount(amount: Decimal, market_type: MarketType) -> BetAmount:
@t.overload
def get_binary_markets(
market_type: t.Literal[MarketType.MANIFOLD],
) -> list[manifold.ManifoldMarket]: ...
) -> list[manifold.ManifoldMarket]:
...


@t.overload
def get_binary_markets(
market_type: t.Literal[MarketType.OMEN],
) -> list[omen.OmenMarket]: ...
) -> list[omen.OmenMarket]:
...


@t.overload
def get_binary_markets(
market_type: MarketType,
) -> t.Union[list[manifold.ManifoldMarket], list[omen.OmenMarket]]: ...
) -> t.Union[list[manifold.ManifoldMarket], list[omen.OmenMarket]]:
...


def get_binary_markets(
Expand Down

0 comments on commit 31bbfc2

Please sign in to comment.