Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mypy raises error #21

Open
femtotrader opened this issue Feb 7, 2021 · 0 comments
Open

mypy raises error #21

femtotrader opened this issue Feb 7, 2021 · 0 comments

Comments

@femtotrader
Copy link
Contributor

mypy raises an error because of

height_unit = float(height_unit)

it raises

termgraph\__init__.py:74: error: Incompatible types in assignment (expression has type "float", variable has type "int")

This is because of type annotation in function parameters

def _render_candle_at(self, candle: Candle, height_unit: int, colorize: bool) -> str:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant