Skip to content

Commit

Permalink
Complete statements order
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed Oct 16, 2023
1 parent 54dde3a commit ab021a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1538,8 +1538,8 @@ fn _crithm(py: Python, module: &PyModule) -> PyResult<()> {
module.add_class::<PyInt>()?;
module.add_class::<PyTieBreaking>()?;
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(())
Expand Down

0 comments on commit ab021a4

Please sign in to comment.