From 88e927521d5d3c4f3fff5f872ef7af13ac85223a Mon Sep 17 00:00:00 2001 From: liquid-8 Date: Thu, 6 Jun 2024 02:10:01 +0300 Subject: [PATCH] typing fix 2 --- uniswap/types.py | 2 +- uniswap/uniswap4.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/uniswap/types.py b/uniswap/types.py index beb65b75..a0a2a38c 100644 --- a/uniswap/types.py +++ b/uniswap/types.py @@ -47,5 +47,5 @@ class UniswapV4_PathKey: # The hooks of the pool hooks : List[Address] - def __repr__(self) -> Tuple(Address, Address, int, int, List[Address]): + def __repr__(self) -> Tuple[Address, Address, int, int, List[Address]]: return (self.currency0, self.currency1, self.fee, self.tickSpacing, self.hooks) \ No newline at end of file diff --git a/uniswap/uniswap4.py b/uniswap/uniswap4.py index 24a6831d..873b00e2 100644 --- a/uniswap/uniswap4.py +++ b/uniswap/uniswap4.py @@ -209,7 +209,7 @@ def get_quote_exact_input( self, currency: AddressLike, # input token qty: int, - path : list[UniswapV4_PathKey], + path : List[UniswapV4_PathKey], ) -> Any: """ :path is a swap route @@ -232,7 +232,7 @@ def get_quote_exact_output( self, currency: AddressLike, # input token qty: int, - path : list[UniswapV4_PathKey], + path : List[UniswapV4_PathKey], ) -> Any: """ :path is a swap route