-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BTSDK: Move do*
methods to related extrinsic
#2286
BTSDK: Move do*
methods to related extrinsic
#2286
Conversation
…xtrinsics/set_weights.py).
…xtrinsics/transfer.py). + ruff
…xtrinsics/serving.py)
…xtrinsics/prometheus.py)
…rscored-methods-to-extrinsics
do*
methods to related extrinsic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only blocker is the docstring update. Others are just questions/tips.
@@ -15,19 +15,81 @@ | |||
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | |||
# DEALINGS IN THE SOFTWARE. | |||
|
|||
from typing import Union, TYPE_CHECKING | |||
from typing import Dict, Tuple, Optional, Union, TYPE_CHECKING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need Dict
or Tuple
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need this because of the linter doesn't want to see dict and tuple instead of Dict and Tuple as type annotation. It's complaints.
tests/e2e_tests/test_incentive.py
Outdated
@@ -3,7 +3,7 @@ | |||
|
|||
import pytest | |||
|
|||
import bittensor | |||
# import bittensor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this line just be entirely removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deferentially. good catch!
@@ -37,6 +105,7 @@ def commit_weights_extrinsic( | |||
""" | |||
Commits a hash of the neuron's weights to the Bittensor blockchain using the provided wallet. | |||
This function is a wrapper around the `_do_commit_weights` method, handling user prompts and error messages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update docstring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…try" has incompatible type "LoggingMachine"; expected "Logger | None" [arg-type]`
bittensor.utils.networking.ensure_connected
logic and description