diff --git a/pyproject.toml b/pyproject.toml index 430a9605..d90f9b06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,8 @@ keep-going = false # https://cython.rtfd.io/en/latest/src/userguide/source_files_and_compilation.html#compiler-directives embedsignature = "True" emit_code_comments = "True" +language_level = "3" +freethreading_compatible = "True" [tool.local.cythonize.kwargs.compile-time-env] # This section can contain compile time env vars diff --git a/yarl/_quoting_c.pyx b/yarl/_quoting_c.pyx index 91b0644f..dacf6b08 100644 --- a/yarl/_quoting_c.pyx +++ b/yarl/_quoting_c.pyx @@ -1,5 +1,3 @@ -# cython: language_level=3, freethreading_compatible=True - from cpython.exc cimport PyErr_NoMemory from cpython.mem cimport PyMem_Free, PyMem_Malloc, PyMem_Realloc from cpython.unicode cimport (