]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: remove unneeded type-ignore comment
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 30 Oct 2025 02:05:23 +0000 (02:05 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 30 Oct 2025 10:38:44 +0000 (10:38 +0000)
Problem solved with Cython 3.1.6 apparently.

psycopg_c/build_backend/psycopg_build_ext.py

index c8bf35f79b40553728fa8895c4a57db15c8a726f..fb066cf85b4b2838fff292bf9c536d689f03cc2e 100644 (file)
@@ -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={