From 5949fbc213888d35ce676b5dd74bc7ab008ddcd6 Mon Sep 17 00:00:00 2001 From: Roman Tolkachyov Date: Sun, 25 Jan 2026 23:34:13 +0300 Subject: [PATCH] Mark pymodule as supporting free-threading python (nogil) --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d50f5bd..9e6e278 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -353,7 +353,7 @@ impl From for Error { } /// A Python module implemented in Rust. -#[pymodule] +#[pymodule(gil_used = false)] mod urlpattern { #[pymodule_export] use super::UrlPattern;