Skip to content

Commit

Permalink
chore: mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
NotPeopling2day committed Nov 10, 2023
1 parent 251e17c commit dd867ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions ape_frame/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def sign_message(self, msg: SignableMessage) -> Optional[MessageSignature]:
return None

return MessageSignature( # type: ignore[call-arg]
v=raw_signature[64],
r=raw_signature[0:32],
s=raw_signature[32:64],
v=raw_signature[64], # type: ignore[arg-type]
r=raw_signature[0:32], # type: ignore[arg-type]
s=raw_signature[32:64], # type: ignore[arg-type]
)

def sign_transaction(self, txn: TransactionAPI, **signer_options) -> Optional[TransactionAPI]:
Expand All @@ -63,8 +63,8 @@ def sign_transaction(self, txn: TransactionAPI, **signer_options) -> Optional[Tr
return None

txn.signature = TransactionSignature( # type: ignore[call-arg]
v=raw_signature[64],
r=raw_signature[0:32],
s=raw_signature[32:64],
v=raw_signature[64], # type: ignore[arg-type]
r=raw_signature[0:32], # type: ignore[arg-type]
s=raw_signature[32:64], # type: ignore[arg-type]
)
return txn
2 changes: 1 addition & 1 deletion ape_frame/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def disconnect(self):

self._web3 = None

def _make_request(self, endpoint: str, parameters: list) -> Any:
def _make_request(self, endpoint: str, parameters: list) -> Any: # type: ignore[override]
try:
return super()._make_request(endpoint, parameters)
except HTTPError as err:
Expand Down

0 comments on commit dd867ed

Please sign in to comment.