Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
slundqui committed Oct 8, 2024
1 parent 54320f2 commit e46a39c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/agent0/chainsync/db/hyperdrive/event_getters.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def get_event_logs_for_db(
A list of emitted events.
"""
# pylint: disable=too-many-arguments
# pylint: disable=too-many-positional-arguments

# We look up the chain id, and define the `from_block` based on which chain it is as the default.
if from_block is None:
Expand Down
2 changes: 1 addition & 1 deletion src/agent0/ethpy/hyperdrive/interface/_contract_calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from fixedpointmath import FixedPoint
from hyperdrivetypes import (
AddLiquidityEventFP,
BaseEvent,
CloseLongEventFP,
CloseShortEventFP,
CreateCheckpointEventFP,
Expand All @@ -36,6 +35,7 @@

if TYPE_CHECKING:
from eth_account.signers.local import LocalAccount
from hyperdrivetypes import BaseEvent
from web3.types import BlockIdentifier, Nonce

from .read_interface import HyperdriveReadInterface
Expand Down
2 changes: 1 addition & 1 deletion src/agent0/ethpy/hyperdrive/interface/read_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import logging
from enum import Enum
from typing import TYPE_CHECKING, Any, cast
from typing import TYPE_CHECKING, cast

import eth_abi
from fixedpointmath import FixedPoint
Expand Down
5 changes: 0 additions & 5 deletions src/agent0/ethpy/hyperdrive/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@

from __future__ import annotations

from typing import TYPE_CHECKING, Any, cast

from fixedpointmath import FixedPoint
from hyperdrivetypes import IHyperdriveContract
from hyperdrivetypes.fixedpoint_types import CheckpointFP, PoolConfigFP, PoolInfoFP
from web3.types import BlockIdentifier, Timestamp

if TYPE_CHECKING:
from .interface import HyperdriveReadInterface


def get_hyperdrive_pool_config(hyperdrive_contract: IHyperdriveContract) -> PoolConfigFP:
"""Get the hyperdrive config from a deployed hyperdrive contract.
Expand Down
2 changes: 1 addition & 1 deletion src/agent0/utils/conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from typing import Any

from fixedpointmath import FixedPoint
from hyperdrivetypes import CheckpointFP, FeesFP, PoolConfigFP, PoolInfoFP
from hyperdrivetypes import FeesFP
from hyperdrivetypes.types.IHyperdriveTypes import Checkpoint, PoolConfig, PoolInfo


Expand Down

0 comments on commit e46a39c

Please sign in to comment.