You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "test.py", line 1, in <module>
from pybit.unified_trading import HTTP
File "...\env\lib\site-packages\pybit\unified_trading.py", line 7, in <module>
from ._v5_misc import MiscHTTP
File "...\env\lib\site-packages\pybit\_v5_misc.py", line 1, in <module>
from ._http_manager import _V5HTTPManager
File "...\env\lib\site-packages\pybit\_http_manager.py", line 62, in <module>
class _V5HTTPManager:
File "...\env\lib\site-packages\pybit\_http_manager.py", line 75, in _V5HTTPManager
retry_codes: defaultdict[dict] = field(
TypeError: 'type' object is not subscriptable
Fixes
'_http_manager.py'
line 1
fromcollectionsimportdefaultdict# oldfromtypingimportDefaultDict, Any# new
line 75
retry_codes: defaultdict[dict] =field( # oldretry_codes: DefaultDict[dict, Any] =field( # new
The text was updated successfully, but these errors were encountered:
Minium code to replicate the error
Traceback
Fixes
'_http_manager.py'
line 1
line 75
The text was updated successfully, but these errors were encountered: