From: Daniele Varrazzo Date: Mon, 22 Jun 2026 22:01:03 +0000 (+0200) Subject: chore: bump cython-lint to latest version X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;p=thirdparty%2Fpsycopg.git chore: bump cython-lint to latest version --- 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