fix(mypy): type annotations for conversions algorithms (#4314)

* fix(mypy): type annotations for conversions algorithms

* refactor(CI): include conversions algorithms for mypy tests
This commit is contained in:
Dhruv Manilawala
2021-04-04 18:55:49 +05:30
committed by GitHub
parent 536fb4bca4
commit 20c7518028
7 changed files with 19 additions and 16 deletions

View File

@@ -28,7 +28,7 @@ def bin_to_octal(bin_string: str) -> str:
bin_string = "0" + bin_string
bin_string_in_3_list = [
bin_string[index : index + 3]
for index, value in enumerate(bin_string)
for index in range(len(bin_string))
if index % 3 == 0
]
for bin_group in bin_string_in_3_list: