Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bittensor/core/axon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1207,8 +1207,8 @@ async def dispatch(
f"axon | --> | {response.headers.get('content-length', -1)} B | {synapse.name} | None | None | 200 | Success "
)

# Return the response to the requester.
return response
# Return the response to the requester.
return response

async def preprocess(self, request: "Request") -> "Synapse":
"""
Expand Down
7 changes: 4 additions & 3 deletions bittensor/core/dendrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ def query(
use_new_loop = True
finally:
self.close_session(using_new_loop=use_new_loop)
return result # type: ignore

return result # type: ignore

async def forward(
self,
Expand Down Expand Up @@ -597,8 +598,8 @@ async def call(
# Log synapse event history
self.synapse_history.append(Synapse.from_headers(synapse.to_headers()))

# Return the updated synapse object after deserializing if requested
return synapse.deserialize() if deserialize else synapse
# Return the updated synapse object after deserializing if requested
return synapse.deserialize() if deserialize else synapse

async def call_stream(
self,
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ requires-python = ">=3.10,<3.15"
dependencies = [
"wheel",
"setuptools~=70.0",
"aiohttp~=3.9",
"aiohttp>=3.9,<4.0",
"asyncstdlib~=3.13.0",
"colorama~=0.4.6",
"fastapi>=0.110.1",
Expand All @@ -29,7 +29,7 @@ dependencies = [
"pyyaml>=6.0",
"retry==0.9.2",
"requests>=2.0.0,<3.0",
"pydantic>=2.3, <3",
"pydantic>=2.3,<3",
"scalecodec==1.2.12",
"uvicorn",
"bittensor-drand>=1.0.0,<2.0.0",
Expand Down