from typing import (Type, Any, Self)

class NoGIL:
    def __enter__(self) -> Self: ...
    def __exit__(self, exc_class: Type[Exception], exc: Exception, tb: Any) -> None: ...

nogil : NoGIL = NoGIL()