Skip to content

Commit c7c5718

Browse files
committed
Add compiler directives to pyproject.toml
1 parent 3871d2c commit c7c5718

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ keep-going = false
4848
# https://cython.rtfd.io/en/latest/src/userguide/source_files_and_compilation.html#compiler-directives
4949
embedsignature = "True"
5050
emit_code_comments = "True"
51+
language_level = "3"
52+
freethreading_compatible = "True"
5153

5254
[tool.local.cythonize.kwargs.compile-time-env]
5355
# This section can contain compile time env vars

yarl/_quoting_c.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# cython: language_level=3, freethreading_compatible=True
2-
31
from cpython.exc cimport PyErr_NoMemory
42
from cpython.mem cimport PyMem_Free, PyMem_Malloc, PyMem_Realloc
53
from cpython.unicode cimport (

0 commit comments

Comments
 (0)