Skip to content

Commit 14789be

Browse files
committed
Bump tortoise-orm to fix aiosqlite bug
1 parent c75737a commit 14789be

7 files changed

Lines changed: 364 additions & 336 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Releases prior to 7.0 has been removed from this file to declutter search result
88

99
## [Unreleased]
1010

11+
### Fixed
12+
13+
- database: Fix exception when creating connections with aiosqlite==0.22.0.
14+
1115
## [8.5.1] - 2025-11-03
1216

1317
### Fixed

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ dependencies = [
5656
"async-lru~=2.0",
5757
"asyncpg~=0.29",
5858
"click~=8.1",
59-
# FIXME: 0.29 to 0.33.0 and higher; in `demo_tezos_dao`: tezos_storage.py:17:11: F821 Undefined name `bool_aliased`
60-
# See https://github.com/koxudaxi/datamodel-code-generator/issues/2431
59+
# NOTE: Bug introduded 0.29: F821 Undefined name `bool_aliased` (#2431)
60+
# NOTE: Fixed in 0.51.0, but it breaks our codegen.
6161
"datamodel-code-generator==0.28.5", # pinned
6262
"debugpy>=1.8.15",
6363
"eth-abi~=5.0",
@@ -70,7 +70,7 @@ dependencies = [
7070
"pyhumps~=3.8",
7171
"pysignalr~=1.0",
7272
"python-dotenv~=1.0",
73-
"python-json-logger~=2.0", # pinned
73+
"python-json-logger~=2.0", # pinned, 3.0 is breaking
7474
"ruamel.yaml~=0.18.6",
7575
"ruff~=0.13.2",
7676
"sentry-sdk~=2.16",
@@ -79,7 +79,7 @@ dependencies = [
7979
"strict-rfc3339~=0.7",
8080
"survey~=5.4",
8181
"tabulate~=0.9",
82-
"tortoise-orm==0.25.1", # pinned
82+
"tortoise-orm==0.25.3", # pinned
8383
"uvloop~=0.20",
8484
"web3~=7.2",
8585
]

requirements.txt

Lines changed: 123 additions & 119 deletions
Large diffs are not rendered by default.

src/dipdup/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from typing import cast
1818

1919
import asyncpg.exceptions # type: ignore[import-untyped]
20-
import sqlparse # type: ignore[import-untyped]
20+
import sqlparse
2121
from tortoise import Tortoise
2222
from tortoise.backends.asyncpg.client import AsyncpgDBClient
2323
from tortoise.backends.base.executor import EXECUTOR_CACHE

src/dipdup/mcp.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ async def _tool_api_add_index(
185185

186186

187187
# TODO: Push typehints to upstream
188-
@server.list_tools() # type: ignore[no-untyped-call,misc]
188+
@server.list_tools() # type: ignore[no-untyped-call,untyped-decorator]
189189
async def list_tools() -> list[types.Tool]:
190190
return [
191191
*list(DIPDUP_TOOLS.values()),
192192
*list(_user_tools.values()),
193193
]
194194

195195

196-
@server.list_resources() # type: ignore[no-untyped-call,misc]
196+
@server.list_resources() # type: ignore[no-untyped-call,untyped-decorator]
197197
async def list_resources() -> list[types.Resource]:
198198
return [
199199
*list(DIPDUP_RESOURCES.values()),
@@ -202,12 +202,12 @@ async def list_resources() -> list[types.Resource]:
202202

203203

204204
# FIXME: Not supported
205-
@server.list_resource_templates() # type: ignore[no-untyped-call,misc]
205+
@server.list_resource_templates() # type: ignore[no-untyped-call,untyped-decorator]
206206
async def list_resource_templates() -> list[types.ResourceTemplate]:
207207
return []
208208

209209

210-
@server.call_tool() # type: ignore[misc]
210+
@server.call_tool() # type: ignore[untyped-decorator]
211211
async def call_tool(name: str, arguments: dict[str, Any]) -> list[types.TextContent]:
212212
from mcp.shared.exceptions import McpError
213213
from mcp.types import ErrorData
@@ -234,7 +234,7 @@ async def call_tool(name: str, arguments: dict[str, Any]) -> list[types.TextCont
234234
) from e
235235

236236

237-
@server.read_resource() # type: ignore[no-untyped-call,misc]
237+
@server.read_resource() # type: ignore[no-untyped-call,untyped-decorator]
238238
async def read_resource(uri: AnyUrl) -> str:
239239
from mcp.shared.exceptions import McpError
240240
from mcp.types import ErrorData

src/dipdup/sys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def set_up_process() -> None:
6969

7070
def set_up_debugger() -> None:
7171
"""Set up debugger for the process"""
72-
import debugpy # type: ignore[import-untyped]
72+
import debugpy
7373

7474
port = int(os.environ.get('DEBUGPY_PORT', 5678))
7575
debugpy.listen(('0.0.0.0', port))

0 commit comments

Comments
 (0)