# Bug report ### Bug description: ``` import cython def func(x): with cython.nogil: print(x) func("hello") ``` When we run cython.nogil with a python syntax, it should give us an error of compiling but it works completely fine. ### CPython versions tested on: 3.12 ### Operating systems tested on: Windows