From dd589ce62f74b2aaae0bcc098a621b41e322b250 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 4 Nov 2025 11:54:32 +0000 Subject: [PATCH] fix: remove duplicate import and replace type() with isinstance() --- binance/__init__.py | 1 - binance/helpers.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/binance/__init__.py b/binance/__init__.py index c780d5191..18e8dac1a 100755 --- a/binance/__init__.py +++ b/binance/__init__.py @@ -13,7 +13,6 @@ OptionsDepthCacheManager, # noqa ThreadedDepthCacheManager, # noqa FuturesDepthCacheManager, # noqa - OptionsDepthCacheManager, # noqa ) from binance.ws.streams import ( BinanceSocketManager, # noqa diff --git a/binance/helpers.py b/binance/helpers.py index 302e3b29d..9ed7af229 100644 --- a/binance/helpers.py +++ b/binance/helpers.py @@ -76,7 +76,7 @@ def round_step_size( def convert_ts_str(ts_str): if ts_str is None: return ts_str - if type(ts_str) == int: + if isinstance(ts_str, int): return ts_str return date_to_milliseconds(ts_str)