Skip to content

Commit

Permalink
WIP: mypy disabled until python/mypy#11829 gets pushed into pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
lenoqt committed Jan 19, 2022
1 parent c2f2270 commit 157ce1f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=60.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
addopts = "--cov=trading"
addopts = "--cov=trading"
testpaths = "tests"

[tool.pyright]
Expand Down Expand Up @@ -56,5 +56,3 @@ warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
no_implicit_reexport = true


10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ basepython = python3.10
deps = flake8
commands = flake8 trading tests

[testenv:mypy]
basepython = python3.10
deps =
-r{toxinidir}/requirements_dev.txt
commands = mypy trading
; [testenv:mypy]
; basepython = python3.10
; deps =
; -r{toxinidir}/requirements_dev.txt
; commands = mypy trading

5 changes: 3 additions & 2 deletions trading/binance/binance.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# type: ignore
# mypy does not support match statements https://github.com/python/mypy/issues/11829
# mypy: ignore-errors
"""mypy does not support match statements https://github.com/python/mypy/issues/11829
"""
import ciso8601 as dt
from typing import Any, Dict, Union, Optional
from dataclasses import dataclass, field
Expand Down

0 comments on commit 157ce1f

Please sign in to comment.