Skip to content

Commit

Permalink
fix: update typing again
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu committed Jun 5, 2024
1 parent dd88b3e commit 2de253d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ape_safe/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@


class SafeContainer(AccountContainerAPI):
_accounts: Dict[str, "SafeAccount"] = {}
_accounts: dict[str, "SafeAccount"] = {}

@property
def _account_files(self) -> Iterator[Path]:
Expand Down Expand Up @@ -182,7 +182,7 @@ def get_signatures(
safe_tx_hash: str,
signers: Iterable[AccountAPI],
) -> dict[AddressType, MessageSignature]:
signatures: Dict[AddressType, MessageSignature] = {}
signatures: dict[AddressType, MessageSignature] = {}
for signer in signers:
message = encode_defunct(hexstr=safe_tx_hash)
signature = signer.sign_message(message)
Expand Down
7 changes: 3 additions & 4 deletions ape_safe/client/base.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import time
from abc import ABC, abstractmethod
from collections.abc import Iterator
from functools import cached_property
from typing import Iterator, Optional, Set, Union
from typing import Iterator, Optional, Union

import certifi
import requests
Expand Down Expand Up @@ -143,13 +142,13 @@ def session(self) -> requests.Session:
session.mount("https://", adapter)
return session

def _get(self, url: str, params: Optional[Dict] = None) -> Response:
def _get(self, url: str, params: Optional[dict] = None) -> Response:
return self._request("GET", url, params=params)

def _post(self, url: str, json: Optional[dict] = None, **kwargs) -> Response:
return self._request("POST", url, json=json, **kwargs)

def _delete(self, url: str, json: Optional[Dict] = None, **kwargs) -> Response:
def _delete(self, url: str, json: Optional[dict] = None, **kwargs) -> Response:
return self._request("DELETE", url, json=json, **kwargs)

@cached_property
Expand Down

0 comments on commit 2de253d

Please sign in to comment.