Skip to content

Commit

Permalink
style(lint): lint rolling
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshultz committed Nov 18, 2023
1 parent 8d2427c commit 2564382
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion silverback/middlewares.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from ape.logging import logger
from ape.types import ContractLog, HexBytes
from ape.types import ContractLog
from ape.utils import ManagerAccessMixin
from taskiq import TaskiqMessage, TaskiqMiddleware, TaskiqResult

Expand Down
5 changes: 3 additions & 2 deletions silverback/persistence.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pickle
from abc import ABC, abstractmethod
from datetime import datetime, timezone
from typing import TYPE_CHECKING, Annotated, Any, Dict, Optional, Type
from typing import Annotated, Optional

from ape.logging import logger
from pydantic import BaseModel
Expand Down Expand Up @@ -82,9 +82,10 @@ async def init_mongo(mongo_uri: str) -> Optional[BasePersistentStorage]:
try:
import pymongo
from beanie import Document, Indexed, init_beanie
from beanie.odm.operators.update.general import Set
from motor.core import AgnosticClient
from motor.motor_asyncio import AsyncIOMotorClient

# from beanie.odm.operators.update.general import Set
except ImportError as err:
print(err)
logger.warning("MongoDB was initialized by dependencies are not installed")
Expand Down
3 changes: 1 addition & 2 deletions silverback/types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from enum import Enum
from typing import Annotated, Any, Dict, Optional
from typing import Optional

from pydantic import BaseModel
from typing_extensions import Self # Introduced 3.11
Expand Down
2 changes: 0 additions & 2 deletions silverback/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import threading
from typing import AsyncIterator, Iterator

from ape.contracts import ContractEvent, ContractInstance
from ape.managers.chain import BlockContainer
from ape.types import HexBytes


Expand Down

0 comments on commit 2564382

Please sign in to comment.