From fd315c61e5b49a58f5ab7e6897d9b850b660fcbd Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 23 Jun 2026 00:01:03 +0200 Subject: [PATCH] chore: bump cython-lint to latest version --- psycopg/pyproject.toml | 2 +- psycopg_c/psycopg_c/types/numeric.pyx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/psycopg/pyproject.toml b/psycopg/pyproject.toml index 951bbbd38..5fbf60bc2 100644 --- a/psycopg/pyproject.toml +++ b/psycopg/pyproject.toml @@ -81,7 +81,7 @@ dev = [ "ast-comments >= 1.1.2", "black >= 26.1.0", "codespell >= 2.2", - "cython-lint >= 0.16", + "cython-lint >= 0.21", "dnspython >= 2.1", "flake8 >= 4.0", "isort[colors] >= 6.0", diff --git a/psycopg_c/psycopg_c/types/numeric.pyx b/psycopg_c/psycopg_c/types/numeric.pyx index 8c3c4658b..5d272e06d 100644 --- a/psycopg_c/psycopg_c/types/numeric.pyx +++ b/psycopg_c/psycopg_c/types/numeric.pyx @@ -487,7 +487,7 @@ cdef class NumericBinaryLoader(CLoader): cdef uint16_t dscale = endian.be16toh(behead[3]) cdef int shift - cdef int i + cdef int _i cdef PyObject *pctx cdef object key cdef const char *digitptr @@ -499,7 +499,7 @@ cdef class NumericBinaryLoader(CLoader): val = 0 digitptr = data + sizeof(behead) - for i in range(ndigits): + for _i in range(ndigits): memcpy(&bedigit, digitptr, sizeof(bedigit)) digitptr += sizeof(bedigit) val *= 10_000 -- 2.47.3