From af65c12943b573abc1402caa98c0cdf519154a19 Mon Sep 17 00:00:00 2001 From: Dalena Date: Wed, 25 Oct 2023 12:44:39 -0500 Subject: [PATCH] fix: remove get_args --- ape_safe/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ape_safe/client.py b/ape_safe/client.py index cb6d718..b1b943d 100644 --- a/ape_safe/client.py +++ b/ape_safe/client.py @@ -2,7 +2,7 @@ from datetime import datetime from enum import Enum from functools import reduce -from typing import Dict, Iterator, List, NewType, Optional, Set, Union, get_args +from typing import Dict, Iterator, List, NewType, Optional, Set, Union import requests from ape.contracts import ContractInstance @@ -332,10 +332,10 @@ def post_signature( signer: AddressType, signature: MessageSignature, ): - if isinstance(safe_tx_or_hash, get_args(SafeTx)): + if isinstance(safe_tx_or_hash, SafeTx): safe_tx = safe_tx_or_hash safe_tx_hash = hash_eip712_message(safe_tx).hex() - elif isinstance(safe_tx_or_hash, get_args(SafeTxID)): + else: safe_tx_hash = safe_tx_or_hash if not isinstance(safe_tx_hash, str):