Skip to content

Commit

Permalink
style(lint): b0rk b0rk b0rk b0rk
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshultz committed Nov 21, 2023
1 parent 4bb23c8 commit 4d50d4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions examples/memory/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from typing import Annotated

from ape import chain
from ape.api import BlockAPI
from ape.types import ContractLog
from ape_tokens import tokens # type: ignore[import]
from typing import Annotated
from taskiq import Context, TaskiqDepends, TaskiqState

from silverback import CircuitBreaker, SilverbackApp, SilverbackStartupState
from taskiq import Context, TaskiqDepends, TaskiqState

# Do this to initialize your app
app = SilverbackApp()
Expand All @@ -27,7 +28,7 @@ def client_startup(state):

# Can handle some initialization on startup, like models or network connections
@app.on_worker_startup()
def worker_startup(state):
def worker_startup(state: TaskiqState):
state.block_count = 0
# state.db = MyDB()
return {"message": "Worker started."}
Expand Down
5 changes: 3 additions & 2 deletions examples/redis/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from typing import Annotated

from ape import chain
from ape.api import BlockAPI
from ape.types import ContractLog
from ape_tokens import tokens # type: ignore[import]
from typing import Annotated
from taskiq import Context, TaskiqDepends, TaskiqState

from silverback import CircuitBreaker, SilverbackApp, SilverbackStartupState
from taskiq import Context, TaskiqDepends, TaskiqState

# Do this to initialize your app
app = SilverbackApp()
Expand Down

0 comments on commit 4d50d4c

Please sign in to comment.