Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bram-vdberg committed Nov 12, 2024
1 parent ac57df8 commit 06a9593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fetch/orderbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from dotenv import load_dotenv
from pandas import DataFrame
from sqlalchemy import create_engine
from sqlalchemy.engine import Engine
from sqlalchemy.engine import Engine, Connection

from src.logger import set_log
from src.models.block_range import BlockRange
Expand Down Expand Up @@ -50,7 +50,7 @@ def _pg_engine(db_env: OrderbookEnv) -> Engine:
return create_engine(db_string)

@staticmethod
def _get_connection(db_env: OrderbookEnv):
def _get_connection(db_env: OrderbookEnv) -> Connection:
"""Returns a database connection"""
engine = OrderbookFetcher._pg_engine(db_env)
return engine.connect()
Expand Down

0 comments on commit 06a9593

Please sign in to comment.