Skip to content

Commit

Permalink
fix: type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Nov 7, 2023
1 parent f04f67f commit df001ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ape/api/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ def poll_logs(
for block in self.poll_blocks(stop_block, required_confirmations, new_block_timeout):
if block.number is None:
raise ValueError("Block number cannot be None")
log_params: Dict[str, int | AddressType | List[Union[str, List[str]]]] = {
log_params: Dict[str, int | AddressType | List[EventABI] | List[AddressType] | List[Union[str, EventABI, AddressType, List[str]]]] = {
"start_block": block.number,
"stop_block": block.number,
"events": events,
Expand Down
2 changes: 1 addition & 1 deletion src/ape/contracts/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ class ContractEvent(ManagerAccessMixin):

def __init__(
self,
contract: "ContractContainer",
contract: Union["ContractInstance", "ContractContainer"],
abi: EventABI,
cached_logs: Optional[List[ContractLog]] = None,
) -> None:
Expand Down

0 comments on commit df001ae

Please sign in to comment.