On python3, to_py_object() on the usize gives us a PyLong,
whereas it is the generic PyObject already on python2, which fits
the py.None() default value.
Upcasting to PyObject explicitely in all cases solves the issue.
hg-reviewers |
On python3, to_py_object() on the usize gives us a PyLong,
whereas it is the generic PyObject already on python2, which fits
the py.None() default value.
Upcasting to PyObject explicitely in all cases solves the issue.
Lint Skipped |
Unit Tests Skipped |