From c61d6ea35b8cc93545c80dcdb65b97e238bdca1d Mon Sep 17 00:00:00 2001 From: Egor Kostan <20955183+ikostan@users.noreply.github.com> Date: Mon, 30 Dec 2024 07:10:38 -0800 Subject: [PATCH] Update solution.py --- kyu_7/pointless_farmer/solution.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kyu_7/pointless_farmer/solution.py b/kyu_7/pointless_farmer/solution.py index d53421deb05..9fe073ca461 100644 --- a/kyu_7/pointless_farmer/solution.py +++ b/kyu_7/pointless_farmer/solution.py @@ -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.