Index: python-watchfiles/Cargo.toml
===================================================================
--- python-watchfiles.orig/Cargo.toml
+++ python-watchfiles/Cargo.toml
@@ -26,7 +26,7 @@ rust-version = "1.77"
 [dependencies]
 crossbeam-channel = "0.5.15"
 notify = { version = "8.0.0" }
-pyo3 = { version = "0.26.0", features = [
+pyo3 = { version = ">=0.26.0,<0.28.0", features = [
     "extension-module",
 ] }
 
