cattrs
cattrs copied to clipboard
cattrs.__all__ contains unimported "GenConverter"
Bleh must've gotten lost in a merge
But cattrs.GenConverter will keep working in 22.2, won't it? You will not introduced a breaking change, won't you? 😇
For 22.2 GenConverter now is an alias to Converter. The current Converter is renamed to BaseConverter.
Yes, I’ve read this. I just wanted @Tinche to confirm that the mistake was not "not removing GenConverter from all" but "not setting GenConverter = Converter in cattrs.__init__" :)
Seems like cattrs is relying on import side effect here. Since GenConverter is defined under .converter.py, this means when we have relative imports GenConverter should already be included in locals() of cattrs/__init__.py.
(printed from locals() of cattrs/__init__.py).
I'm confirming the GenConverter name should still be available. No need to cause even more breakage for no reason ;)
Fixed on main!