Skip to content

Commit 642eeab

Browse files
authored
fix: remove duplicate import and replace type() with isinstance() (#1623)
1 parent a5617be commit 642eeab

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

binance/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
OptionsDepthCacheManager, # noqa
1414
ThreadedDepthCacheManager, # noqa
1515
FuturesDepthCacheManager, # noqa
16-
OptionsDepthCacheManager, # noqa
1716
)
1817
from binance.ws.streams import (
1918
BinanceSocketManager, # noqa

binance/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def round_step_size(
7676
def convert_ts_str(ts_str):
7777
if ts_str is None:
7878
return ts_str
79-
if type(ts_str) == int:
79+
if isinstance(ts_str, int):
8080
return ts_str
8181
return date_to_milliseconds(ts_str)
8282

0 commit comments

Comments
 (0)