mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-14 13:40:39 +00:00
Drop a stale type-ignore in test_rust_dbapi
`Cursor.fetchone` is annotated `-> Any` on this branch, so mypy flags the ignore as unused and CI's lint would fail. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZdvuLkg7Lm7wDtPQzDnJx
This commit is contained in:
co-authored by
Claude Fable 5
parent
b866b9d46d
commit
fcc845f00d
@@ -336,7 +336,7 @@ class RustDBAPIAdapterTestCase(unittest.TestCase):
|
||||
def backend_pid(conn: rust_dbapi.Connection) -> int:
|
||||
cursor = conn.cursor()
|
||||
cursor.execute("SELECT pg_backend_pid()")
|
||||
(pid,) = cursor.fetchone() # type: ignore[misc]
|
||||
(pid,) = cursor.fetchone()
|
||||
conn.commit()
|
||||
return pid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user