Skip to content

Commit

Permalink
Update solution.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Dec 30, 2024
1 parent 7dc66d6 commit c61d6ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kyu_7/pointless_farmer/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
GitHub: https://github.com/ikostan
"""

from typing import TypeVar

def buy_or_sell(pairs: list, harvested_fruit: str) -> str | list:

T = TypeVar("T", bound=str|list)

def buy_or_sell(pairs: list, harvested_fruit: str) -> T:
"""
Decide which direction to trade.
Expand Down

0 comments on commit c61d6ea

Please sign in to comment.