Skip to content

Commit 8c12f74

Browse files
committed
set gil_used = false to support free-threaded Python
1 parent 279a7bc commit 8c12f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ fn check_buffer(input: Py<PyAny>) -> PyResult<bool> {
421421
/// Variables:
422422
///
423423
/// - __version__
424-
#[pymodule]
424+
#[pymodule(gil_used = false)]
425425
fn _autosar_data(py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
426426
m.add_class::<ElementType>()?;
427427
m.add_class::<AutosarVersion>()?;

0 commit comments

Comments
 (0)