Skip to content

Commit

Permalink
Merge pull request #2156 from opentensor/feat/ledger-integration
Browse files Browse the repository at this point in the history
[Ledger Integration] [Feature] bump pysub to 1.7.9+
  • Loading branch information
camfairchild authored and ibraheem-opentensor committed Jul 25, 2024
1 parent e630210 commit 94e7bb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
15 changes: 0 additions & 15 deletions bittensor/subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"""
import argparse
import copy
import functools
import socket
import time
from typing import List, Dict, Union, Optional, Tuple, TypedDict, Any, TypeVar
Expand Down Expand Up @@ -105,20 +104,6 @@

KEY_NONCE: Dict[str, int] = {}

T = TypeVar("T")

#######
# Monkey patch in caching the convert_type_string method
#######
if hasattr(RuntimeConfiguration, "convert_type_string"):
original_convert_type_string = RuntimeConfiguration.convert_type_string

@functools.lru_cache(maxsize=None)
def convert_type_string(cls, name):
return original_convert_type_string(name)

RuntimeConfiguration.convert_type_string = convert_type_string
#######


class ParamWithTypes(TypedDict):
Expand Down
6 changes: 3 additions & 3 deletions requirements/prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ pytest
retry
requests
rich
scalecodec==1.2.7 # scalecodec should not be changed unless first verifying compatibility with the subtensor's monkeypatching of scalecodec.RuntimeConfiguration.get_decoder_class
shtab==1.6.5
substrate-interface==1.7.5
scalecodec==1.2.11
shtab~=1.6.5
substrate-interface~=1.7.9
termcolor
tqdm
uvicorn==0.22.0
Expand Down
4 changes: 2 additions & 2 deletions scripts/environments/apple_m1_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ dependencies:
- retry==0.9.2
- rich==12.5.1
- rsa==4.9
- scalecodec==1.2.7 # scalecodec should not be changed unless first verifying compatibility with the subtensor's monkeypatching of scalecodec.RuntimeConfiguration.get_decoder_class
- scalecodec==1.2.11
- scikit-learn==1.2.2
- scipy==1.10.1
- sentencepiece==0.1.99
Expand All @@ -243,7 +243,7 @@ dependencies:
- sqlalchemy==2.0.19
- starlette==0.37.2
- streamlit==1.22.0
- substrate-interface==1.5.2
- substrate-interface==1.7.9
- tenacity==8.2.2
- termcolor==2.1.1
- threadpoolctl==3.1.0
Expand Down

0 comments on commit 94e7bb8

Please sign in to comment.