From: Daniele Varrazzo Date: Thu, 30 Oct 2025 02:05:23 +0000 (+0000) Subject: chore: remove unneeded type-ignore comment X-Git-Tag: 3.3.0~29^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15842d2f3c8225ca702a19dd5cf41033ea776faa;p=thirdparty%2Fpsycopg.git chore: remove unneeded type-ignore comment Problem solved with Cython 3.1.6 apparently. --- diff --git a/psycopg_c/build_backend/psycopg_build_ext.py b/psycopg_c/build_backend/psycopg_build_ext.py index c8bf35f79..fb066cf85 100644 --- a/psycopg_c/build_backend/psycopg_build_ext.py +++ b/psycopg_c/build_backend/psycopg_build_ext.py @@ -48,7 +48,7 @@ class psycopg_build_ext(build_ext): # In the sdist there are not .pyx, only c, so we don't need Cython. # Otherwise Cython is a requirement and it is used to compile pyx to c. if os.path.exists("psycopg_c/_psycopg.pyx"): - from Cython.Build import cythonize # type: ignore + from Cython.Build import cythonize for ext in self.distribution.ext_modules: for i in range(len(ext.sources)): @@ -56,7 +56,7 @@ class psycopg_build_ext(build_ext): if fext == ".c" and os.path.exists(base + ".pyx"): ext.sources[i] = base + ".pyx" - self.distribution.ext_modules = cythonize( + self.distribution.ext_modules = cythonize( # type: ignore[no-untyped-call] self.distribution.ext_modules, language_level=3, compiler_directives={