Skip to content

Commit

Permalink
chore: linting and formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rayokamoto committed Jan 14, 2025
1 parent 45033eb commit 1a43294
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions storb/challenge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def serialize_prf_value(self, prf_value: bytes) -> str:
return base64.b64encode(prf_value).decode("utf-8")

@field_validator("prf_value", mode="before")
def deserialize_prf_value(cls, value):
def deserialize_prf_value(self, value):
"""Deserialize PRF value from base64."""

if isinstance(value, str):
Expand Down Expand Up @@ -292,7 +292,7 @@ def serialize_prf_key(self, prf_key: bytes) -> str:
return prf_key

@field_validator("prf_key", mode="before")
def deserialize_prf_key(cls, value):
def deserialize_prf_key(self, value):
"""Deserialize PRF key from base64."""

if isinstance(value, str):
Expand All @@ -304,7 +304,7 @@ def deserialize_prf_key(cls, value):
return value

@field_validator("prp_key", mode="before")
def deserialize_prp_key(cls, value):
def deserialize_prp_key(self, value):
"""Deserialize PRP key from base64."""

if isinstance(value, str):
Expand Down
3 changes: 1 addition & 2 deletions storb/miner/__main__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import asyncio
import time

from storb.util.logging import get_logger

from storb.miner import Miner
from storb.util.logging import get_logger

logger = get_logger(__name__)

Expand Down
1 change: 0 additions & 1 deletion storb/util/message_signing.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from binascii import unhexlify
from typing import Union

from pydantic import BaseModel
from substrateinterface import Keypair
Expand Down
1 change: 0 additions & 1 deletion storb/util/uids.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import random

import numpy as np
from fiber.chain.metagraph import Metagraph

from storb.neuron import Neuron
Expand Down

0 comments on commit 1a43294

Please sign in to comment.