Joël Larose <joel.lar...@gmail.com> added the comment: OMG! Ok, thanks guys! Switching to super().__new__ made all the difference! I can't believe I didn't think to try to change this line.
Regarding the call to cast, I know it's only for type checking. Trying to write code that works checks with mypy. I probably have other issues in my code, but not getting __call__ called was the show-stopper. I thought type(name, bases, namespace) did the same thing as super().__new__(...). Clearly, I was wrong. ---------- resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43685> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com