Skip to content

Commit

Permalink
updated all types to work with mypy/c
Browse files Browse the repository at this point in the history
  • Loading branch information
Azulinho committed Apr 13, 2023
1 parent 1cc871a commit 0f085b7
Show file tree
Hide file tree
Showing 6 changed files with 226 additions and 115 deletions.
4 changes: 4 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ ignore_missing_imports = True
ignore_missing_imports = True
[mypy-faster_fifo_reduction.*]
ignore_missing_imports = True
[mypy-tenacity]
implicit_reexport = True
[mypy-lib.helpers]
implicit_reexport = True
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import threading
from os import getpid, unlink
from os.path import exists
from typing import Any

import colorlog
import epdb
Expand Down Expand Up @@ -97,7 +98,7 @@ def control_center() -> None:
module = importlib.import_module(f"strategies.{cfg['STRATEGY']}")
Strategy = getattr(module, "Strategy")

bot = Strategy(client, args.config, cfg) # type: ignore
bot: Any = Strategy(client, args.config, cfg)

logging.info(
f"running in {bot.mode} mode with "
Expand Down
Loading

0 comments on commit 0f085b7

Please sign in to comment.