Skip to content

Commit 490972e

Browse files
committed
Fix linting errors: remove unused imports and use 'is' for type comparison
1 parent 619c67a commit 490972e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

mapper/core.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import logging
22
import sys
3-
from datetime import datetime
4-
from typing import Dict, Any, Optional, Tuple, Type, Union
5-
import pytz
3+
from typing import Dict, Any, Optional, Tuple, Type
64

75
# configure logging
86
logger = logging.getLogger(__name__)
@@ -201,7 +199,7 @@ def map_value(value: Any, metric_id: str) -> Tuple[str, Optional[str]]:
201199
elif metric_id in METRIC_TYPES_WEARABLE:
202200
value_type, metric_group = METRIC_TYPES_WEARABLE[metric_id], "WEARABLE"
203201

204-
if value_type == bool:
202+
if value_type is bool:
205203
processed_value = int(1) if value == 1 or value == '1' else int(0)
206204
else:
207205
processed_value = value

0 commit comments

Comments
 (0)