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

@@ -29,7 +29,7 @@ REFERENCES :
-> Wikipedia reference: https://en.wikipedia.org/wiki/Dalton_(unit)
"""
KILOGRAM_CHART = {
KILOGRAM_CHART: dict[str, float] = {
"kilogram": 1,
"gram": pow(10, 3),
"milligram": pow(10, 6),
@@ -42,7 +42,7 @@ KILOGRAM_CHART = {
"atomic-mass-unit": 6.022136652e26,
}
WEIGHT_TYPE_CHART = {
WEIGHT_TYPE_CHART: dict[str, float] = {
"kilogram": 1,
"gram": pow(10, -3),
"milligram": pow(10, -6),