<div id="comment:0"></div> `type_to_parent` seems to be a less complete implementation of `py_scalar_parent`. The change on this ticket helps get rid some explicit imports from `sage.rings`. CC: @tscrim @mezzarobba Component: **refactoring** Author: **Matthias Koeppe** Branch/Commit: **[`4b37cc6`](https://github.com/sagemath/sagetrac-mirror/commit/4b37cc674eb9ddc5a5354d277b66852b7154cc63)** Reviewer: **Travis Scrimshaw** _Issue created by migration from https://trac.sagemath.org/ticket/29880_