From 99b8cb7e138e027c5c543d07635abb1977e28cad Mon Sep 17 00:00:00 2001 From: "John W. Leimgruber III" Date: Sun, 2 Feb 2025 14:18:18 -0500 Subject: [PATCH] Add Response class to module so it can be imported For static type checking and other usage you can now stuff like: ```python from primp import Response ``` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index a048ee8..fb89d71 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1079,6 +1079,7 @@ fn primp(_py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> { pyo3_log::init(); m.add_class::()?; + m.add_class::()?; m.add_function(wrap_pyfunction!(request, m)?)?; m.add_function(wrap_pyfunction!(get, m)?)?; m.add_function(wrap_pyfunction!(head, m)?)?;