From ab021a42e394bece500128e0413fec0c2820bf0b Mon Sep 17 00:00:00 2001 From: Azat Ibrakov Date: Mon, 16 Oct 2023 11:02:49 +0200 Subject: [PATCH] Complete statements order --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 85f2773..0c348b8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1538,8 +1538,8 @@ fn _crithm(py: Python, module: &PyModule) -> PyResult<()> { module.add_class::()?; module.add_class::()?; let numbers_module = py.import("numbers")?; - let rational_cls = numbers_module.getattr(intern!(py, "Rational"))?; let integral_cls = numbers_module.getattr(intern!(py, "Integral"))?; + let rational_cls = numbers_module.getattr(intern!(py, "Rational"))?; integral_cls.call_method1("register", (PyInt::type_object(py),))?; rational_cls.call_method1("register", (PyFraction::type_object(py),))?; Ok(())