mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-04 19:57:45 +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:
1 parent
4626c659f5
commit
8e4932ded5
1 file changed
+1
-1
@@ -316,7 +316,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