This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Addresses #9516. Signed-off-by: Damien George <damien@micropython.org>
Fixes issue #6107.